diff options
author | lunaphied <lunaphied@lunaphied.me> | 2024-03-25 14:13:44 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@lix> | 2024-03-25 14:13:44 +0000 |
commit | d3d7489571baeb651d3843dba3b638621694c174 (patch) | |
tree | 2c480e6aae1704384ad66f1b5bd8dd644e7e1e08 /src/nix | |
parent | 5a1c35f90756508617b4d694d49c4ac3defff1c5 (diff) | |
parent | 185ecf1f45e6bf2198fe9ca3bb7ad175f412a014 (diff) |
Merge "Improve new CLI UX by supporting short `-E` flag for `--expr`" into main
Diffstat (limited to 'src/nix')
-rw-r--r-- | src/nix/eval.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/eval.md b/src/nix/eval.md index 48d5aa597..d1daaf755 100644 --- a/src/nix/eval.md +++ b/src/nix/eval.md @@ -8,10 +8,10 @@ R""( # nix eval --expr '1 + 2' ``` -* Evaluate a Nix expression to JSON: +* Evaluate a Nix expression to JSON using the short-form expression flag: ```console - # nix eval --json --expr '{ x = 1; }' + # nix eval --json -E '{ x = 1; }' {"x":1} ``` |