]>
| description | Bun CLI for executing combinations of shell commands. |
| last change | Mon, 5 Oct 2026 03:04:59 +0000 (20:04 -0700) |
| URL | https://git.ardis.lu/transcriber.git |
| ssh://git@git.ardis.lu/~/transcriber.git | |
| git@git.ardis.lu:transcriber.git |
Transcriber is a Bun CLI for executing combinations of shell commands.
The commands are run using Bun Shell, which implements its own set of built-in commands.
Code repository mirrors: GitHub, Codeberg, git.ardis.lu
Given the following echo.json:
{
"command": "echo $arg1 $arg2 $arg3",
"args": {
"arg1": ["value1", "value2"],
"arg2": ["value3", "value4"],
"arg3": ["value5", "value6"]
}
}
Do:
bun run index.ts -- --input ./examples/echo.json
value1 value3 value5
value1 value3 value6
value1 value4 value5
value1 value4 value6
value2 value3 value5
value2 value3 value6
value2 value4 value5
value2 value4 value6
Pass --show-command and/or --show-args to log the command and/or args specified in the input JSON:
bun run index.ts -- --input ./examples/echo.json --show-command --show-args
$ echo value1 value3 value5
┌──────┬────────┐
│ │ Values │
├──────┼────────┤
│ arg1 │ value1 │
│ arg2 │ value3 │
│ arg3 │ value5 │
└──────┴────────┘
-------
value1 value3 value5
$ echo value1 value3 value6
┌──────┬────────┐
│ │ Values │
├──────┼────────┤
│ arg1 │ value1 │
│ arg2 │ value3 │
│ arg3 │ value6 │
└──────┴────────┘
-------
value1 value3 value6
[...]
More examples can be found within the /examples folder.
Use bun build to generate a portable executable:
bun build ./index.ts --compile --outfile transcriber
Usage:
./transcriber --input ./examples/echo.json
Pipe stdout to a text file to record outputs:
./transcriber --input ./examples/echo.json > ./output.txt
| 13 days ago | main | shortlog | log | tree |