forked from nix-community/nix-zsh-completions
-
Notifications
You must be signed in to change notification settings - Fork 1
/
_nix-instantiate
23 lines (21 loc) · 1.01 KB
/
_nix-instantiate
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#compdef nix-instantiate
#autoload
_nix-common-options
# --no-location: undocumented arg
# --repair: undocumented arg
_arguments \
- regular \
$_nix_boilerplate_opts \
$_nix_common_opts \
'(--expr -E)'{--expr,-E}'[Interpret command line args as Nix expressions]' \
'--xml[Print output from --eval as XML]'\
'--json[Print output from --eval as JSON]'\
'--add-root[Register result as a root of the garbage collector]:Path (Hint /nix/var/nix/gcroots):_files -/'\
'--indirect[Allow roots to be stored outside of the GC roots directory]'\
'--parse[Just parse the input files and print their abstract syntax trees]'\
'--eval[Just parse and evaluate the input files, and print the resulting values]'\
'--strict[Cause --eval to recursively evaluate list elements and attributes]'\
'--read-write-mode[Perform evaluation in read/write mode]'\
'*:File to instantiate (default\: ./default.nix):_nix_path' \
- find-file \
"--find-file[Look up the given files on Nix's search path]:*:Lookup file using <...> logic:"\