tvl-depot/users/wpcarro/tools/run
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
..
.envrc subtree(users/wpcarro): docking briefcase at '24f5a642' 2021-12-14 02:15:47 +03:00
default.nix fix(wpcarro/nix): Remove <briefcase> references 2021-12-15 15:49:40 +00:00
main.go subtree(users/wpcarro): docking briefcase at '24f5a642' 2021-12-14 02:15:47 +03:00
README.md refactor(wpcarro): Remove briefcase references 2021-12-24 01:46:31 +00:00
shell.nix fix(wpcarro/nix): Remove <briefcase> references 2021-12-15 15:49:40 +00:00

run

Simplify the commands you call to run scripts on the command line.

> run path/to/file.py
> run path/to/file.ts

How?

Define a run.json configuration mapping commands to filename extensions like so:

{
  ".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.

> nix-env -iA users.wpcarro.run