Improve new CLI UX by supporting short -E flag for --expr

Change-Id: I55881c846da8416a92a14deedfa5bbbf09a122fb
This commit is contained in:
Lunaphied
2024-03-24 21:17:51 -06:00
parent a7161b6c0f
commit 185ecf1f45
4 changed files with 18 additions and 2 deletions
+1
View File
@@ -12,6 +12,7 @@ EOF
[[ $testStdinHeredoc == '{ bar = 4; foo = 4; }' ]]
nix eval --expr 'assert 1 + 2 == 3; true'
nix eval -E 'assert 1 + 2 == 3; true'
[[ $(nix eval int -f "./eval.nix") == 123 ]]
[[ $(nix eval str -f "./eval.nix") == '"foo"' ]]