snix/tvix/eval/src
Griffin Smith e720545e5b refactor(tvix/eval): use Clap for arg+env parsing
Refactor the environment variable and argument parsing for the tvix repl
to use Clap instead of doing things ad-hoc, and thread through options
obtained from environment variables via explicit arguments rather than
obtaining them from the environment as they're needed. This makes adding
more flags more sustainable, and also makes the binary fully
self-documenting, including supported env vars, via `--help`.

Change-Id: Ib1f6a0cd20056e8c9196760ff755fa5729667760
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6653
Autosubmit: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-09-18 22:08:43 +00:00
..
builtins feat(tvix_eval): Support builtins.compareVersions 2022-09-17 14:48:58 +00:00
compiler refactor(tvix/eval): clone the Arc<codemap::File> for the compiler 2022-09-18 21:12:50 +00:00
tests refactor(tvix/eval): use Clap for arg+env parsing 2022-09-18 22:08:43 +00:00
value fix(tvix/eval): Force thunks during equality comparison 2022-09-18 22:08:43 +00:00
chunk.rs refactor(tvix/eval): Don't (ab)use PartialEq for Nix equality 2022-09-18 22:03:41 +00:00
errors.rs fix(tvix/eval): Emit errors for invalid integers 2022-09-18 16:40:14 +00:00
eval.rs refactor(tvix/eval): use Clap for arg+env parsing 2022-09-18 22:08:43 +00:00
lib.rs refactor(tvix/eval): use Clap for arg+env parsing 2022-09-18 22:08:43 +00:00
main.rs refactor(tvix/eval): use Clap for arg+env parsing 2022-09-18 22:08:43 +00:00
observer.rs refactor(tvix/eval): use CodeIdx wrapper for instruction pointer 2022-09-13 14:41:57 +00:00
opcode.rs test(tvix/eval): Add proof-of-concept test for Chunk 2022-09-18 17:55:06 +00:00
properties.rs refactor(tvix/eval): Don't (ab)use PartialEq for Nix equality 2022-09-18 22:03:41 +00:00
test_utils.rs test(tvix/eval): Add proof-of-concept test for Chunk 2022-09-18 17:55:06 +00:00
upvalues.rs refactor(tvix/eval): Don't (ab)use PartialEq for Nix equality 2022-09-18 22:03:41 +00:00
vm.rs chore(tvix/eval): Pass in VM to nix_eq 2022-09-18 22:03:42 +00:00
warnings.rs feat(tvix/eval): implement legacy let syntax 2022-09-16 18:13:26 +00:00