tvl-depot/users/wpcarro/tools/run/README.md
William Carroll c1e381eecc refactor(wpcarro): Remove briefcase references
TL;DR:
- prefer WPCARRO env-var to BRIEFCASE
- remove repository URLs from Emacs libraries
- prefer tvl-depot-path where possible
- reduce the scope of constants.el
- prune (some not all) stale CI configuration

Change-Id: I21e9130402502ec6fa2fc4b46753c890069be62d
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4545
Tested-by: BuildkiteCI
Reviewed-by: wpcarro <wpcarro@gmail.com>
2021-12-24 01:46:31 +00:00

30 lines
478 B
Markdown

# run
Simplify the commands you call to run scripts on the command line.
```shell
> run path/to/file.py
> run path/to/file.ts
```
## How?
Define a run.json configuration mapping commands to filename extensions like
so:
```json
{
".ts": "npx ts-node $file",
".py": "python3 $file"
}
```
Then call `run path/to/some/file.ts` on the command line, and `npx ts-node
file.ts` will run.
## Installation
Install `run` using Nix.
```shell
> nix-env -iA users.wpcarro.run
```