tvl-depot/tools/run
William Carroll 6b224a9e31 Drop support for lorri
Lorri does not cleanly integrate with my corporate device, which cannot run
NixOS. To expose dependencies to Emacs buffers, I will use nix-buffer.el, which
reads its values from dir-locals.nix. To easily expose dependencies from my
existing shell.nix files into dir-locals.nix, I wrote a Nix utility function.
2020-03-27 10:59:50 +00:00
..
.envrc Drop support for lorri 2020-03-27 10:59:50 +00:00
default.nix Remove default values for Nix expression parameters 2020-03-01 22:32:24 +00:00
dir-locals.nix Drop support for lorri 2020-03-27 10:59:50 +00:00
main.go Tidy up structure of briefcase 2020-02-12 16:58:29 +00:00
README.md Tidy up structure of briefcase 2020-02-12 16:58:29 +00:00
shell.nix Drop support for lorri 2020-03-27 10:59:50 +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 briefcase.run