b83fc85f |
1 | # |
2 | # GNU Guix --- Functional package management for GNU |
3c986a7d |
3 | # Copyright © 2017, 2018 Nikita <nikita@n0.is> |
b83fc85f |
4 | # |
5 | # This file is part of GNU Guix. |
6 | # |
7 | # GNU Guix is free software; you can redistribute it and/or modify it |
8 | # under the terms of the GNU General Public License as published by |
9 | # the Free Software Foundation; either version 3 of the License, or (at |
10 | # your option) any later version. |
11 | # |
12 | # GNU Guix is distributed in the hope that it will be useful, but |
13 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | # GNU General Public License for more details. |
16 | # |
17 | # You should have received a copy of the GNU General Public License |
18 | # along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
19 | |
20 | # Guix commands covered: |
21 | # download, pull, system, build, package, size, refresh |
22 | # publish, lint, import, hash, graph, gc, environment, |
23 | # edit, copy, container, challenge, archive, pack, |
24 | # weather |
25 | |
26 | # Existing commands provided by guix as of 2017-11-30: |
27 | # archive, challenge, copy, edit, gc, hash, lint, package |
28 | # pull, size, weather, build, container, download, environment |
29 | # graph, import, pack, publish, refresh, system |
30 | |
31 | # TODO: a rewrite similar to rust.fish |
32 | |
33 | # Use 'command guix' to avoid interactions for aliases. |
34 | |
35 | ## To be used later on: |
36 | # function __fish_guix_archive |
37 | # end |
38 | # function __fish_guix_build_file_ls |
39 | # end |
40 | # function __fish_guix_challenge |
41 | # end |
42 | # function __fish_guix_container |
43 | # end |
44 | # function __fish_guix_copy |
45 | # end |
46 | # function __fish_guix_download |
47 | # end |
48 | # function __fish_guix_edit |
49 | # end |
50 | # function __fish_guix_environment |
51 | # end |
52 | # function __fish_guix_gc |
53 | # end |
54 | # function __fish_guix_graph |
55 | # end |
56 | # function __fish_guix_hash |
57 | # end |
58 | # function __fish_guix_import |
59 | # end |
60 | # function __fish_guix_lint |
61 | # end |
62 | # function __fish_guix_package |
63 | # end |
64 | # function __fish_guix_publish |
65 | # end |
66 | # function __fish_guix_pull |
67 | # end |
68 | # function __fish_guix_refresh |
69 | # end |
70 | # function __fish_guix_size |
71 | # end |
72 | # function __fish_guix_system |
73 | # end |
74 | |
75 | function __fish_guix_needs_command |
76 | set cmd (commandline -opc) |
77 | if [ (count $cmd) -eq 1 ] |
78 | return 0 |
79 | else |
80 | set -l skip_next 1 |
81 | # Skip first word because it's "guix" |
82 | for c in $cmd[2..-1] |
83 | test $skip_next -eq 0 |
84 | and set skip_next 1 |
85 | and continue |
86 | switch $c |
87 | # General options that can still take a command |
88 | case "=*" |
89 | continue |
90 | # case --asdf |
91 | # set skip_next 0 |
92 | # continue |
93 | # these behave like commands and everything after them is ignored |
94 | case "--help" "--version" |
95 | return 1 |
96 | # We assume that any other token that's not an argument to a general option is a command |
97 | case "*" |
98 | echo $c |
99 | return 1 |
100 | end |
101 | end |
102 | return 0 |
103 | end |
104 | return 1 |
105 | end |
106 | |
107 | function __fish_guix_using_command |
108 | set -l cmd (__fish_guix_needs_command) |
109 | test -z "$cmd" |
110 | and return 1 |
111 | contains -- $cmd $argv |
112 | and return 0 |
113 | end |
114 | |
115 | # general options |
116 | complete -f -c guix -s h -l help -d 'Display the manual of a guix command' |
117 | complete -f -c guix -s V -l version -d 'Display version information.' |
118 | |
119 | # shared options |
120 | #complete -f -c guix -n '__fish_guix_using_command' |
121 | |
122 | #### download |
123 | set -l remotecommands format no-check-certificate |
124 | complete -f -c guix -n '__fish_guix_needs_command' -a download -d 'Download object from source into the gnu store' |
125 | complete -f -c guix -n '__fish_guix_using_command download' -s f -l format -d'Write the hash in the given format' |
126 | complete -f -c guix -n '__fish_guix_using_command download' -l no-check-certificate -d 'Do not validate the certificate of HTTPS servers' |
127 | |
128 | #### pull |
129 | set -l remotecommands verbose url bootstrap |
130 | complete -f -c guix -n '__fish_guix_needs_command' -a pull -d 'Download and deploy the latest version of Guix' |
131 | complete -f -c guix -n '__fish_guix_using_command pull' -l verbose -d 'produce verbose output' |
132 | complete -f -c guix -n '__fish_guix_using_command pull' -l url -d 'download the Guix tarball from URL' |
133 | complete -f -c guix -n '__fish_guix_using_command pull' -l bootstrap -d 'use the bootstrap Guile to build the new Guix' |
134 | |
135 | #### system |
dc209d5a |
136 | set -l remotecommands reconfigure roll-back switch-generation list-generations build container vm vm-image disk-image init extension-graph shepherd-graph load-path keep-failed keep-going dry-run fallback no-substitutes substitutes-urls no-grafts no-offload max-silent-time timeout verbosity rounds cores max-jobs derivation on-error image-size no-grub share expose full-boot |
b83fc85f |
137 | complete -f -c guix -n '__fish_guix_needs_command' -a system -d 'Build the operating system declared in FILE according to ACTION.' |
138 | complete -f -c guix -n '__fish_guix_using_command system' -l reconfigure -d 'switch to a new operating system configuration' |
139 | complete -f -c guix -n '__fish_guix_using_command system' -l roll-back -d 'switch to the previous operating system configuration' |
140 | complete -f -c guix -n '__fish_guix_using_command system' -l switch-generation -d 'switch to an existing operating system configuration' |
141 | complete -f -c guix -n '__fish_guix_using_command system' -l list-generations -d 'list the system generations' |
142 | complete -f -c guix -n '__fish_guix_using_command system' -l build -d 'build the operating system without installing anything' |
143 | complete -f -c guix -n '__fish_guix_using_command system' -l container -d 'build a container that shares the host\'s store' |
144 | complete -f -c guix -n '__fish_guix_using_command system' -l vm -d 'build a virtual machine image that shares the host\'s store' |
145 | complete -f -c guix -n '__fish_guix_using_command system' -l vm-image -d 'build a freestanding virtual machine image' |
146 | complete -f -c guix -n '__fish_guix_using_command system' -l disk-image -d 'build a disk image, suitable for a USB stick' |
147 | complete -f -c guix -n '__fish_guix_using_command system' -l init -d 'initialize a root file system to run GNU' |
148 | complete -f -c guix -n '__fish_guix_using_command system' -l extension-graph -d 'emit the service extension graph in Dot format' |
149 | complete -f -c guix -n '__fish_guix_using_command system' -l shepherd-graph -d 'emit the graph of shepherd services in Dot format' |
150 | complete -f -c guix -n '__fish_guix_using_command system' -s L -d 'prepend DIR to the package module search path' |
151 | complete -f -c guix -n '__fish_guix_using_command system' -a "--load-path=" -d 'prepend DIR to the package module search path' |
152 | complete -f -c guix -n '__fish_guix_using_command system' -s K -l keep-failed -d 'keep build tree of failed builds' |
153 | complete -f -c guix -n '__fish_guix_using_command system' -s k -l keep-going -d 'keep going when some of the derivations fail' |
154 | complete -f -c guix -n '__fish_guix_using_command system' -s n -l dry-run -d 'do not build the derivations' |
155 | complete -f -c guix -n '__fish_guix_using_command system' -l fallback -d 'fall back to building when the substituter fails' |
156 | complete -f -c guix -n '__fish_guix_using_command system' -l no-substitutes -d 'build instead of resorting to pre-built substitutes' |
157 | complete -f -c guix -n '__fish_guix_using_command system' -a "--substitute-urls=" -d 'fetch substitute from URLS if they are authorized' |
158 | complete -f -c guix -n '__fish_guix_using_command system' -l no-grafts -d 'do not graft packages' |
dc209d5a |
159 | complete -f -c guix -n '__fish_guix_using_command system' -l no-offload -d 'do not attempt to offload builds' |
b83fc85f |
160 | complete -f -c guix -n '__fish_guix_using_command system' -a "--max-silent-time=" -d 'mark the build as failed after SECONDS of silence' |
161 | complete -f -c guix -n '__fish_guix_using_command system' -a "--timeout=" -d 'mark the build as failed after SECONDS of activity' |
162 | complete -f -c guix -n '__fish_guix_using_command system' -a "--verbosity=" -d 'use the given verbosity LEVEL' |
163 | complete -f -c guix -n '__fish_guix_using_command system' -a --"rounds=" -d 'build N times in a row to detect non-determinism' |
164 | complete -f -c guix -n '__fish_guix_using_command system' -s c -d 'allow the use of up to N CPU cores for the build' |
165 | complete -f -c guix -n '__fish_guix_using_command system' -a "--cores=" -d 'allow the use of up to N CPU cores for the build' |
166 | complete -f -c guix -n '__fish_guix_using_command system' -s M -d 'allow at most N build jobs' |
167 | complete -f -c guix -n '__fish_guix_using_command system' -a "--max-jobs=" -d 'allow at most N build jobs' |
168 | complete -f -c guix -n '__fish_guix_using_command system' -s d -l derivation -d 'return the derivation of the given system' |
169 | complete -f -c guix -n '__fish_guix_using_command system' -a "--on-error=" -d 'apply STRATEGY when an error occurs while reading FILE' |
170 | complete -f -c guix -n '__fish_guix_using_command system' -a "--image-size=" -d 'for \'vm-image\', produce an image of SIZE' |
171 | complete -f -c guix -n '__fish_guix_using_command system' -l no-grub -d 'for \'init\', do not install GRUB' |
172 | complete -f -c guix -n '__fish_guix_using_command system' -a "--share=" -d 'for \'vm\', share host file system according to SPEC' |
173 | complete -f -c guix -n '__fish_guix_using_command system' -a "--expose=" -d 'for \'vm\', expose host file system according to SPEC' |
174 | complete -f -c guix -n '__fish_guix_using_command system' -l full-boot -d 'for \'vm\', make a full boot sequence' |
175 | |
176 | #### build |
dc209d5a |
177 | set -l remotecommands expression file source sources system target derivations check repair root quiet log-file load-path keep-failed keep-going dry-run fallback no-substitutes substitute-urls no-grafts no-offload max-silent-time timeout verbosity rounds cores max-jobs with-source with-input with-graft |
b83fc85f |
178 | complete -f -c guix -n '__fish_guix_needs_command' -a build -d 'Build the given PACKAGE-OR-DERIVATION and return their output paths.' |
179 | complete -f -c guix -n '__fish_guix_using_command build' -a "--expression=" -d 'build the package or derivation EXPR evaluates to' |
180 | complete -f -c guix -n '__fish_guix_using_command build' -s f -d 'build the package or derivation that the code within FILE evaluates to' --exclusive --arguments "(ls -ap)" |
181 | # The command below is broken: |
182 | complete -f -c guix -n '__fish_guix_using_command build' -a '--file=' -a '(ls -ap)' -d 'build the package or derivation that the code within FILE evaluates to' |
183 | complete -f -c guix -n '__fish_guix_using_command build' -s S -l source -d 'build the packages\' source derivations' |
184 | complete -f -c guix -n '__fish_guix_using_command build' -l sources -d 'build source derivations, TYPE may optionally be one of "package", "all" (default), or "transitive"' -a "package all transitive" -a "package all transitive" |
185 | complete -f -c guix -n '__fish_guix_using_command build' -s s -d 'attempt to build for SYSTEM--e.g., "i686-linux"' |
186 | complete -f -c guix -n '__fish_guix_using_command build' -a "--system=" -d 'attempt to build for SYSTEM--e.g., "i686-linux"' |
187 | complete -f -c guix -n '__fish_guix_using_command build' -a "--target=" -d 'cross-build for TRIPLET--e.g., "armel-linux-gnu"' |
188 | complete -f -c guix -n '__fish_guix_using_command build' -s d -l derivations -d 'return the derivation paths of the given packages' |
189 | complete -f -c guix -n '__fish_guix_using_command build' -l check -d 'rebuild items to check for non-determinism issues' |
190 | complete -f -c guix -n '__fish_guix_using_command build' -l repair -d 'repair the specified items' |
191 | complete -f -c guix -n '__fish_guix_using_command build' -s r -d 'make FILE a symlink to the result, and register it as a garbage collector root' |
192 | complete -f -c guix -n '__fish_guix_using_command build' -a "--root=" -d 'make FILE a symlink to the result, and register it as a garbage collector root' |
193 | complete -f -c guix -n '__fish_guix_using_command build' -s q -l quiet -d 'do not show the build log' |
194 | complete -f -c guix -n '__fish_guix_using_command build' -l log-file -d 'return the log file names for the given derivations' |
195 | complete -f -c guix -n '__fish_guix_using_command build' -s L -d 'prepend DIR to the package module search path' |
196 | complete -f -c guix -n '__fish_guix_using_command build' -a "--load-path=" -d 'prepend DIR to the package module search path' |
197 | complete -f -c guix -n '__fish_guix_using_command build' -s K -l keep-failed -d 'keep build tree of failed builds' |
198 | complete -f -c guix -n '__fish_guix_using_command build' -s k -l keep-going -d 'keep going when some of the derivations fail' |
199 | complete -f -c guix -n '__fish_guix_using_command build' -s n -l dry-run -d 'do not build the derivations' |
200 | complete -f -c guix -n '__fish_guix_using_command build' -l fallback -d 'fall back to building when the substituter fails' |
201 | complete -f -c guix -n '__fish_guix_using_command build' -l no-substitutes -d 'build instead of resorting to pre-built substitutes' |
202 | complete -f -c guix -n '__fish_guix_using_command build' -a "--substitute-urls=" -d 'fetch substitute from URLS if they are authorized' |
203 | complete -f -c guix -n '__fish_guix_using_command build' -l no-grafts -d 'do not graft packages' |
dc209d5a |
204 | complete -f -c guix -n '__fish_guix_using_command build' -l no-offload -d 'do not attempt to offload builds' |
b83fc85f |
205 | complete -f -c guix -n '__fish_guix_using_command build' -a "--max-silent-time=" -d 'mark the build as failed after SECONDS of silence' |
206 | complete -f -c guix -n '__fish_guix_using_command build' -a "--timeout=" -d 'mark the build as failed after SECONDS of activity' |
207 | complete -f -c guix -n '__fish_guix_using_command build' -a "--verbosity=" -d 'use the given verbosity LEVEL' |
208 | complete -f -c guix -n '__fish_guix_using_command build' -a "--rounds=" -d 'build N times in a row to detect non-determinism' |
209 | complete -f -c guix -n '__fish_guix_using_command build' -s c -d 'allow the use of up to N CPU cores for the build' |
210 | complete -f -c guix -n '__fish_guix_using_command build' -a "--cores=" -d 'allow the use of up to N CPU cores for the build' |
211 | complete -f -c guix -n '__fish_guix_using_command build' -s M -d 'allow at most N build jobs' |
212 | complete -f -c guix -n '__fish_guix_using_command build' -a "--max-jobs=" -d 'allow at most N build jobs' |
213 | complete -f -c guix -n '__fish_guix_using_command build' -a "--with-source=" -d 'use SOURCE when building the corresponding package' |
214 | complete -f -c guix -n '__fish_guix_using_command build' -a "--with-input=" -d 'PACKAGE=REPLACEMENT .. replace dependency PACKAGE by REPLACEMENT' |
215 | complete -f -c guix -n '__fish_guix_using_command build' -a "--with-graft=" -d 'PACKAGE=REPLACEMENT .. graft REPLACEMENT on packages that refer to PACKAGE' |
216 | |
217 | #### package |
dc209d5a |
218 | set -l remotecommands install install-from-expression install-from-file remove upgrade manifest do-no-upgrade roll-back search-paths list-generations delete-generations switch-generation profile bootstrap verbose search list-installed list-available show load-path keep-failed keep-going dry-run fallback no.substitutes substitute-urls no-grafts no-offload max-silent-time timenout verbosity rounds cores max-jobs with-source with-input with-graft |
b83fc85f |
219 | complete -f -c guix -n '__fish_guix_needs_command' -a package -d 'Install, remove, or upgrade packages in a single transaction.' |
220 | complete -f -c guix -n '__fish_guix_using_command package' -s i -l install -d 'install PACKAGEs' |
221 | complete -f -c guix -n '__fish_guix_using_command package' -s e -d 'install the package EXP evaluates to' |
222 | complete -f -c guix -n '__fish_guix_using_command package' -a "--install-from-expression=" -d 'install the package EXP evaluates to' |
223 | complete -f -c guix -n '__fish_guix_using_command package' -s f -d 'install the package that the code within FILE evaluates to' |
224 | complete -f -c guix -n '__fish_guix_using_command package' -a "--install-from-file=" -d 'install the package that the code within FILE evaluates to' |
225 | complete -f -c guix -n '__fish_guix_using_command package' -s r -l remove -d 'remove PACKAGEs' |
226 | complete -f -c guix -n '__fish_guix_using_command package' -s u -l upgrade -d '[=REGEXP] upgrade all the installed packages matching REGEXP' |
227 | complete -f -c guix -n '__fish_guix_using_command package' -s m -d 'create a new profile generation with the manifest from FILE' |
228 | complete -f -c guix -n '__fish_guix_using_command package' -a "--manifest=" -d 'create a new profile generation with the manifest from FILE' |
229 | complete -f -c guix -n '__fish_guix_using_command package' -l do-not-upgrade -d '[=REGEXP] do not upgrade any packages matching REGEXP' |
230 | complete -f -c guix -n '__fish_guix_using_command package' -l roll-back -d 'roll back to the previous generation' |
231 | complete -f -c guix -n '__fish_guix_using_command package' -l search-paths -d '[=KIND] display needed environment variable definitions' |
232 | complete -f -c guix -n '__fish_guix_using_command package' -s l -l list-generations -d '[=PATTERN] list generations matching PATTERN' |
233 | complete -f -c guix -n '__fish_guix_using_command package' -s d -l delete-generations -d '[=PATTERN] delete generations matching PATTERN' |
234 | complete -f -c guix -n '__fish_guix_using_command package' -s S -d 'PATTERN switch to a generation matching PATTERN' |
235 | complete -f -c guix -n '__fish_guix_using_command package' -a "--switch-generation=" -d 'PATTERN switch to a generation matching PATTERN' |
236 | complete -f -c guix -n '__fish_guix_using_command package' -s p -d 'use PROFILE instead of the user\'s default profile' |
237 | complete -f -c guix -n '__fish_guix_using_command package' -a "--profile=" -d 'use PROFILE instead of the user\'s default profile' |
238 | complete -f -c guix -n '__fish_guix_using_command package' -l bootstrap -d 'use the bootstrap Guile to build the profile' |
239 | complete -f -c guix -n '__fish_guix_using_command package' -l verbose -d 'produce verbose output' |
240 | complete -f -c guix -n '__fish_guix_using_command package' -s s -d 'REGEXP search in synopsis and description using REGEXP' |
241 | complete -f -c guix -n '__fish_guix_using_command package' -a "--search=" -d 'REGEXP search in synopsis and description using REGEXP' |
242 | complete -f -c guix -n '__fish_guix_using_command package' -s I -l list-installed -d '[=REGEXP] list installed packages matching REGEXP' |
243 | #complete -c guix -n '__fish_guix_using_command package' -s I -l list-installed --exclusive --arguments "(guix package --list-installed)" --description 'List installed packages matching REGEXP' |
244 | complete -f -c guix -n '__fish_guix_using_command package' -s A -l list-available -d '[=REGEXP] list available packages matching REGEXP' |
245 | complete -f -c guix -n '__fish_guix_using_command package' -a "--show=" -d 'PACKAGE show details about PACKAGE' |
246 | complete -f -c guix -n '__fish_guix_using_command package' -s L -d 'DIR prepend DIR to the package module search path' |
247 | complete -f -c guix -n '__fish_guix_using_command package' -a "--load-path=" -d 'DIR prepend DIR to the package module search path' |
248 | complete -f -c guix -n '__fish_guix_using_command package' -s K -l keep-failed -d 'keep build tree of failed builds' |
249 | complete -f -c guix -n '__fish_guix_using_command package' -s k -l keep-going -d 'keep going when some of the derivations fail' |
250 | complete -f -c guix -n '__fish_guix_using_command package' -s n -l dry-run -d 'do not build the derivations' |
251 | complete -f -c guix -n '__fish_guix_using_command package' -l fallback -d 'fall back to building when the substituter fails' |
252 | complete -f -c guix -n '__fish_guix_using_command package' -l no-substitutes -d 'build instead of resorting to pre-built substitutes' |
253 | complete -f -c guix -n '__fish_guix_using_command package' -a "--substitute-urls=" -d 'URLS fetch substitute from URLS if they are authorized' |
254 | complete -f -c guix -n '__fish_guix_using_command package' -l no-grafts -d 'do not graft packages' |
dc209d5a |
255 | complete -f -c guix -n '__fish_guix_using_command package' -l no-offload -d 'do not attempt to offload builds' |
b83fc85f |
256 | complete -f -c guix -n '__fish_guix_using_command package' -a "--max-silent-time=" -d 'SECONDS mark the build as failed after SECONDS of silence' |
257 | complete -f -c guix -n '__fish_guix_using_command package' -a "--timeout=" -d 'SECONDS mark the build as failed after SECONDS of activity' |
258 | complete -f -c guix -n '__fish_guix_using_command package' -a "--verbosity=" -d 'LEVEL use the given verbosity LEVEL' |
259 | complete -f -c guix -n '__fish_guix_using_command package' -a "--rounds=" -d 'N build N times in a row to detect non-determinism' |
260 | complete -f -c guix -n '__fish_guix_using_command package' -s c -d 'N allow the use of up to N CPU cores for the build' |
261 | complete -f -c guix -n '__fish_guix_using_command package' -a "--cores=" -d 'N allow the use of up to N CPU cores for the build' |
262 | complete -f -c guix -n '__fish_guix_using_command package' -s M -l max-jobs= -d 'N allow at most N build jobs' |
263 | complete -f -c guix -n '__fish_guix_using_command package' -a "--max-jobs=" -d 'N allow at most N build jobs' |
264 | complete -f -c guix -n '__fish_guix_using_command package' -a "--with-source=" -d 'SOURCE use SOURCE when building the corresponding package' |
265 | complete -f -c guix -n '__fish_guix_using_command package' -a "--with-input=" -d 'PACKAGE=REPLACEMENT replace dependency PACKAGE by REPLACEMENT' |
266 | complete -f -c guix -n '__fish_guix_using_command package' -a "--with-graft=" -d 'PACKAGE=REPLACEMENT graft REPLACEMENT on packages that refer to PACKAGE' |
267 | |
268 | #### size |
269 | set -l remotecommands substitute-urls= system= map-file= |
270 | complete -f -c guix -n '__fish_guix_needs_command' -a size -d 'Report the size of PACKAGE and its dependencies.' |
271 | complete -f -c guix -n '__fish_guix_using_command size' -a "--substitute-urls=" -d 'fetch substitute from URLS if they are authorized' |
272 | complete -f -c guix -n '__fish_guix_using_command size' -a "--system=" -d 'consider packages for SYSTEM--e.g., "i686-linux"' |
273 | complete -f -c guix -n '__fish_guix_using_command size' -a "--map-file=" -d 'write to FILE a graphical map of disk usage' |
274 | |
275 | #### refresh |
276 | set -l remotecommands expression update select type list-updaters list-dependent key-server gpg key-download |
277 | complete -f -c guix -n '__fish_guix_needs_command' -a refresh -d 'Update package definitions to match the latest upstream version' |
278 | # FIXME: Too long. When PACKAGE... is given, update only the specified packages. Otherwise update all the packages of the distribution, or the subset thereof specified with `--select`.' |
279 | complete -f -c guix -n '__fish_guix_using_command refresh' -a "--expression=" -d 'consider the package EXPR evaluates to' |
280 | complete -f -c guix -n '__fish_guix_using_command refresh' -l update -d 'update source files in place' |
281 | #complete -f -c guix -n '__fish_guix_using_command refresh' -l select= -d 'select all the packages in SUBSET, one of `core` or `non-core`' --exclusive --arguments "core non-core" |
282 | complete -f -c guix -n '__fish_guix_using_command refresh' -a "--select=" -d 'select all the packages in SUBSET, one of `core` or `non-core`' --exclusive --arguments "core non-core" |
283 | complete -f -c guix -n '__fish_guix_using_command refresh' -a "--type=" -d 'restrict to updates from the specified updaters (e.g., \'gnu\')' --exclusive --arguments "gnu gnome kde xorg kernel.org elpa cran bioconductor cpan pypi gem github hackage crate" |
284 | complete -f -c guix -n '__fish_guix_using_command refresh' -l list-updaters -d 'list available updaters and exit' |
285 | complete -f -c guix -n '__fish_guix_using_command refresh' -l list-dependent -d 'list top-level dependent packages that would need to be rebuilt as a result of upgrading PACKAGE' |
286 | complete -f -c guix -n '__fish_guix_using_command refresh' -a "--key-server=" -d 'use HOST as the OpenPGP key server' |
287 | complete -f -c guix -n '__fish_guix_using_command refresh' -a "--gpg=" -d 'use COMMAND as the GnuPG 2.x command' |
288 | complete -f -c guix -n '__fish_guix_using_command refresh' -a "--key-download=" -d 'handle missing OpenPGP keys according to POLICY.' --exclusive --arguments "always never interactive" |
289 | |
290 | #### publish |
291 | set -l remotecommands port= listen= user= compression ttl= repl |
292 | complete -f -c guix -n '__fish_guix_needs_command' -a publish -d 'Publish /gnu/store over HTTP.' |
293 | complete -f -c guix -n '__fish_guix_using_command publish' -a "--port=" -d 'listen on PORT' |
294 | complete -f -c guix -n '__fish_guix_using_command publish' -a "--listen=" -d 'listen on the network interface for HOST' |
295 | complete -f -c guix -n '__fish_guix_using_command publish' -a "--user=" -d 'change privileges to USER as soon as possible' |
296 | complete -f -c guix -n '__fish_guix_using_command publish' -l compression -d '[=LEVEL] compress archives at LEVEL' |
297 | complete -f -c guix -n '__fish_guix_using_command publish' -a "--ttl=" -d 'announce narinfos can be cached for TTL seconds' |
298 | complete -f -c guix -n '__fish_guix_using_command publish' -l repl -d '[=PORT] spawn REPL server on PORT' |
299 | |
300 | #### lint |
301 | set -l remotecommands checkers list-checkers |
302 | complete -f -c guix -n '__fish_guix_needs_command' -a lint -d 'Run a set of checkers on the specificied package.' |
303 | complete -f -c guix -n '__fish_guix_using_command lint' -l list-checkers -d 'Display the list of available lint checkers.' |
304 | complete -f -c guix -n '__fish_guix_using_command lint' -l checkers -d 'Only run the specified checkers.' |
305 | complete -f -c guix -n '__fish_guix_using_command lint' -l description -d 'Validate package descriptions.' |
306 | complete -f -c guix -n '__fish_guix_using_command lint' -l gnu-description -d 'Validate synopsis and descriptions of the GNU packages.' |
307 | complete -f -c guix -n '__fish_guix_using_command lint' -l inputs-should-be-native -d 'Identify inputs that should be native inputs.' |
308 | complete -f -c guix -n '__fish_guix_using_command lint' -l inputs-should-not-be-inputs -d 'Identify inputs that should not be inputs at all.' |
309 | complete -f -c guix -n '__fish_guix_using_command lint' -l patch-file-names -d 'Validate file names anda availability of patches.' |
310 | complete -f -c guix -n '__fish_guix_using_command lint' -l home-page -d 'Validate home-page URLs' |
311 | complete -f -c guix -n '__fish_guix_using_command lint' -l license -d 'Make sure the "license" field is a <license > or a list thereof' |
312 | complete -f -c guix -n '__fish_guix_using_command lint' -l source -d 'Validate source URLs' |
313 | complete -f -c guix -n '__fish_guix_using_command lint' -l mirror-url -d 'Suggest "mirror://" URLs' |
314 | complete -f -c guix -n '__fish_guix_using_command lint' -l source-file-name -d 'Validate file names of sources' |
315 | complete -f -c guix -n '__fish_guix_using_command lint' -l derivation -d 'Report failure to compile a package to a derivation' |
316 | complete -f -c guix -n '__fish_guix_using_command lint' -l synopsis -d 'Validate package synopses' |
317 | complete -f -c guix -n '__fish_guix_using_command lint' -l cve -d 'Check the Common Vulnerabilities and Exposures (CVE) database' |
318 | complete -f -c guix -n '__fish_guix_using_command lint' -l formatting -d 'Look for formatting issues in the source' |
319 | |
320 | #### import |
321 | set -l remotecommands import gnu nix pypi cpan hackage elpa gem cran crate texlive json |
322 | complete -f -c guix -n '__fish_guix_needs_command' -a import -d 'Run IMPORTER with ARGS' |
323 | ##### import gnu |
324 | complete -f -c guix -n '__fish_guix_using_command import; and not __fish_seen_subcommand_from $remotecommands' -a gnu -d 'Return a package declaration template for PACKAGE, a GNU package.' |
325 | complete -f -c guix -n '__fish_guix_using_command import; and __fish_seen_subcommand_from gnu' -a "--key-download=" -d 'handle missing OpenPGP keys according to POLICY: "always", "never", and "interactive", which is also used when "key-download" is not specified.' |
326 | ##### import nix |
327 | complete -f -c guix -n '__fish_guix_using_command import; and not __fish_seen_subcommand_from $remotecommands' -a nix -d 'Import and convert the Nix expression ATTRIBUTE of NIXPKGS.' |
328 | ##### import pypi |
329 | complete -f -c guix -n '__fish_guix_using_command import; and not __fish_seen_subcommand_from $remotecommands' -a pypi -d 'Import and convert the PyPI package for PACKAGE-NAME.' |
330 | ##### import cpan |
331 | complete -f -c guix -n '__fish_guix_using_command import; and not __fish_seen_subcommand_from $remotecommands' -a cpan -d 'Import and convert the CPAN package for PACKAGE-NAME.' |
332 | ##### import hackage |
333 | complete -f -c guix -n '__fish_guix_using_command import; and not __fish_seen_subcommand_from $remotecommands' -a hackage -d 'Import and convert the Hackage package for PACKAGE-NAME. If PACKAGE-NAME includes a suffix constituted by a at-sign followed by a numerical version (as used with Guix packages), then a definition for the specified version of the package will be generated. If no version suffix is pecified, then the generated package definition will correspond to the latest available version.' |
334 | complete -f -c guix -n '__fish_guix_using_command import; and __fish_seen_subcommand_from hackage' -s e -d 'ALIST specify environment for Cabal evaluation.' |
335 | complete -f -c guix -n '__fish_guix_using_command import; and __fish_seen_subcommand_from hackage' -a "--cabal-environment=" -d 'ALIST specify environment for Cabal evaluation.' |
336 | complete -f -c guix -n '__fish_guix_using_command import; and __fish_seen_subcommand_from hackage' -s s -l stdin -d 'Read from standard input.' |
337 | complete -f -c guix -n '__fish_guix_using_command import; and __fish_seen_subcommand_from hackage' -s t -l no-test-dependencies -d 'don\'t include test-only dependencies.' |
338 | ##### import elpa |
339 | complete -f -c guix -n '__fish_guix_using_command import; and not __fish_seen_subcommand_from $remotecommands' -a elpa -d 'Import the latest package named PACKAGE-NAME from an ELPA repository.' |
340 | complete -f -c guix -n '__fish_guix_using_command import; and __fish_seen_subcommand_from elpa' -s a -d 'specify the archive repository' --exclusive --arguments "gnu melpa-stable melpa" |
341 | complete -f -c guix -n '__fish_guix_using_command import; and __fish_seen_subcommand_from elpa' -a "--archive=" -d 'specify the archive repository' --exclusive --arguments "gnu melpa-stable melpa" |
342 | ##### import gem |
343 | complete -f -c guix -n '__fish_guix_using_command import; and not __fish_seen_subcommand_from $remotecommands' -a gem -d 'Import and convert the RubyGems package for PACKAGE-NAME.' |
344 | ##### import cran |
345 | complete -f -c guix -n '__fish_guix_using_command import; and not __fish_seen_subcommand_from $remotecommands' -a cran -d 'Import and convert the CRAN package for PACKAGE-NAME.' |
346 | complete -f -c guix -n '__fish_guix_using_command import; and __fish_seen_subcommand_from cran' -s a -d 'specify the archive repository' --exclusive --arguments "bioconductor cran" |
347 | complete -f -c guix -n '__fish_guix_using_command import; and __fish_seen_subcommand_from cran' -a "--archive=" -d 'specify the archive repository' --exclusive --arguments "bioconductor cran" |
348 | complete -f -c guix -n '__fish_guix_using_command import; and __fish_seen_subcommand_from cran' -l recursive -d 'traverse the dependency graph of the given package recursively and generate package definitions for all those packages that are not yet in Guix' |
349 | ##### import crate |
350 | complete -f -c guix -n '__fish_guix_using_command import; and not __fish_seen_subcommand_from $remotecommands' -a crate -d 'Import and convert the crate.io package for PACKAGE-NAME.' |
351 | ##### import json |
352 | complete -f -c guix -n '__fish_guix_using_command import; and not __fish_seen_subcommand_from $remotecommands' -a json -d 'Import and convert the JSON package definition in PACKAGE-FILE.' |
353 | ##### import texlive |
354 | complete -f -c guix -n '__fish_guix_using_command import; and not __fish_seen_subcommand_from $remotecommands' -a texlive -d 'Import and convert the Texlive package for PACKAGE-NAME.' |
355 | complete -f -c guix -n '__fish_guix_using_command import; and __fish_seen_subcommand_from texlive' -s a -l "--archive=" -d 'specify the archive repository' |
356 | |
357 | #### hash |
358 | set -l remotecommands exclude-vcs format= recursive |
359 | complete -f -c guix -n '__fish_guix_needs_command' -a hash -d 'Return the cryptographic hash of a FILE.' |
360 | complete -f -c guix -n '__fish_guix_using_command hash' -s x -l exclude-vcs -d 'Exclude version control directories.' |
361 | complete -f -c guix -n '__fish_guix_using_command hash' -s f -d 'Write the hash in the given format.' --exclusive --arguments "nix-base32 base32 base16 hex hexadecimal" |
362 | complete -f -c guix -n '__fish_guix_using_command hash' -a "--format=" -d 'Write the hash in the given format.' --exclusive --arguments "nix-base32 base32 base16 hex hexadecimal" |
363 | complete -f -c guix -n '__fish_guix_using_command hash' -s r -l recursive -d 'Compute the hash on FILE recursively.' |
364 | |
365 | #### graph |
366 | set -l remotecommands backend list-backends type list-types expression |
367 | complete -f -c guix -n '__fish_guix_needs_command' -a graph -d 'Emit a Graphviz (dot) representation of the dependencies of a PACKAGE.' |
368 | complete -f -c guix -n '__fish_guix_using_command graph' -l backend -d 'Produce a graph with the given backend TYPE' |
369 | complete -f -c guix -n '__fish_guix_using_command graph' -l list-backends -d 'list the available graph backends' |
370 | complete -f -c guix -n '__fish_guix_using_command graph' -l type -d 'represent nodes of the given TYPE' |
371 | complete -f -c guix -n '__fish_guix_using_command graph' -l list-types -d 'list the available graph types' |
372 | complete -f -c guix -n '__fish_guix_using_command graph' -l expression -d 'consider the package EXPR evaluates to' |
373 | |
374 | #### gc |
375 | set -l remotecommands collect-garbage free-space delete optimize list-dead list-live references requisites referrers verify list-failures clear-failures |
376 | complete -f -c guix -n '__fish_guix_needs_command' -a gc -d 'Invoke the garbage collector.' |
377 | complete -f -c guix -n '__fish_guix_using_command gc' -s C -d 'collect at least MIN bytes of garbage' |
378 | complete -f -c guix -n '__fish_guix_using_command gc' -a "--collect-garbage=" -d 'collect at least MIN bytes of garbage' |
379 | complete -f -c guix -n '__fish_guix_using_command gc' -s F -d 'attempt to reach FREE available space in the store' |
380 | complete -f -c guix -n '__fish_guix_using_command gc' -a "--free-space=" -d 'attempt to reach FREE available space in the store' |
381 | complete -f -c guix -n '__fish_guix_using_command gc' -s d -l delete -d 'attempt to delete PATHS' |
382 | complete -f -c guix -n '__fish_guix_using_command gc' -l optimize -d 'optimize the store by deduplicating identical files' |
383 | complete -f -c guix -n '__fish_guix_using_command gc' -l list-dead -d 'list dead paths' |
384 | complete -f -c guix -n '__fish_guix_using_command gc' -l list-live -d 'list live paths' |
385 | complete -f -c guix -n '__fish_guix_using_command gc' -l references -d 'list the references of PATHS' |
386 | complete -f -c guix -n '__fish_guix_using_command gc' -s R -l requisites -d 'list the requisites of PATHS' |
387 | complete -f -c guix -n '__fish_guix_using_command gc' -l referrers -d 'list the referrers of PATHS' |
388 | complete -f -c guix -n '__fish_guix_using_command gc' -l verify -d 'verify the integrity of the store |
389 | OPTS is a comma-separated combination of \'repair\' and \'contents\'' |
390 | complete -f -c guix -n '__fish_guix_using_command gc' -l list-failures -d 'list cached build failures' |
391 | complete -f -c guix -n '__fish_guix_using_command gc' -l clear-failures -d 'remove PATHS from the set of cached failures' |
392 | |
393 | #### environment |
dc209d5a |
394 | set -l remotecommands expression load ad-hoc pure search-paths system root container network share expose bootstrap load-path keep-failed keep-going dry-run fallback no-substitutes substitute-urls no-grafts no-offload max-silent-time timeout verbosity rounds cores max-jobs |
b83fc85f |
395 | complete -f -c guix -n '__fish_guix_needs_command' -a environment -d 'Build an environment that includes the dependencies of PACKAGE and execute COMMAND or an interactive shell in that environment.' |
396 | complete -f -c guix -n '__fish_guix_using_command environment' -s e -d 'Create environment for the package that EXPR evaluates to' |
397 | complete -f -c guix -n '__fish_guix_using_command environment' -a "--expression=" -d 'Create environment for the package that EXPR evaluates to' |
398 | complete -f -c guix -n '__fish_guix_using_command environment' -s l -d 'create environment for the package that the code within FILE evaluates to.' |
399 | complete -f -c guix -n '__fish_guix_using_command environment' -a "--load=" -d 'create environment for the package that the code within FILE evaluates to.' |
400 | complete -f -c guix -n '__fish_guix_using_command environment' -l ad-hoc -d 'include all specified packages in the environment instead of only their inputs' |
401 | complete -f -c guix -n '__fish_guix_using_command environment' -l pure -d 'unset existing environment variables' |
402 | complete -f -c guix -n '__fish_guix_using_command environment' -l search-paths -d 'display needed environment variable definitions' |
403 | complete -f -c guix -n '__fish_guix_using_command environment' -s s -d 'attempt to build for SYSTEM--e.g., "i686-linux"' |
404 | complete -f -c guix -n '__fish_guix_using_command environment' -a "--system=" -d 'attempt to build for SYSTEM--e.g., "i686-linux"' |
405 | complete -f -c guix -n '__fish_guix_using_command environment' -s r -d 'make FILE a symlink to the result, and register it as a garbage collector root' |
406 | complete -f -c guix -n '__fish_guix_using_command environment' -a "--root=" -d 'make FILE a symlink to the result, and register it as a garbage collector root' |
407 | complete -f -c guix -n '__fish_guix_using_command environment' -s C -l container -d 'run command within an isolated container' |
408 | complete -f -c guix -n '__fish_guix_using_command environment' -s N -l network -d 'allow containers to access the network' |
409 | complete -f -c guix -n '__fish_guix_using_command environment' -a "--share=" -d 'for containers, share writable host file system according to SPEC' |
410 | complete -f -c guix -n '__fish_guix_using_command environment' -a "--expose=" -d 'for containers, expose read-only host file system according to SPEC' |
411 | complete -f -c guix -n '__fish_guix_using_command environment' -l bootstrap -d 'use bootstrap binaries to build the environment' |
412 | complete -f -c guix -n '__fish_guix_using_command environment' -s L -d 'prepend DIR to the package module search path' |
413 | complete -f -c guix -n '__fish_guix_using_command environment' -a "--load-path=" -d 'prepend DIR to the package module search path' |
414 | complete -f -c guix -n '__fish_guix_using_command environment' -s K -l keep-failed -d 'keep build tree of failed builds' |
415 | complete -f -c guix -n '__fish_guix_using_command environment' -s k -l keep-going -d 'keep going when some of the derivations fail' |
416 | complete -f -c guix -n '__fish_guix_using_command environment' -s n -l dry-run -d 'do not build the derivations' |
417 | complete -f -c guix -n '__fish_guix_using_command environment' -l fallback -d 'fall back to building when the substituter fails' |
418 | complete -f -c guix -n '__fish_guix_using_command environment' -l no-substitutes -d 'build instead of resorting to pre-built substitutes' |
419 | complete -f -c guix -n '__fish_guix_using_command environment' -a "--substitute-urls=" -d 'fetch substitute from URLS if they are authorized' |
420 | complete -f -c guix -n '__fish_guix_using_command environment' -l no-grafts -d 'do not graft packages' |
dc209d5a |
421 | complete -f -c guix -n '__fish_guix_using_command environment' -l no-offload -d 'do not attempt to offload builds' |
b83fc85f |
422 | complete -f -c guix -n '__fish_guix_using_command environment' -a "--max-silent-time=" -d 'mark the build as failed after SECONDS of silence' |
423 | complete -f -c guix -n '__fish_guix_using_command environment' -a "--timeout=" -d 'mark the build as failed after SECONDS of activity' |
424 | complete -f -c guix -n '__fish_guix_using_command environment' -a "--verbosity=" -d 'use the given verbosity LEVEL' |
425 | complete -f -c guix -n '__fish_guix_using_command environment' -a "--rounds=" -d 'build N times in a row to detect non-determinism' |
426 | complete -f -c guix -n '__fish_guix_using_command environment' -s c -d 'allow the use of up to N CPU cores for the build' |
427 | complete -f -c guix -n '__fish_guix_using_command environment' -a "--cores=" -d 'allow the use of up to N CPU cores for the build' |
428 | complete -f -c guix -n '__fish_guix_using_command environment' -s M -d 'allow at most N build jobs' |
429 | complete -f -c guix -n '__fish_guix_using_command environment' -a "--max-jobs=" -d 'allow at most N build jobs' |
430 | |
431 | #### edit |
432 | complete -f -c guix -n '__fish_guix_needs_command' -a edit -d 'Start $VISUAL or $EDITOR to edit the definitions of PACKAGE.' |
433 | |
434 | #### copy |
dc209d5a |
435 | set -l remotecommands to= from= load-path= keep-failed keep-going dry-run fallback no-substitutes substitute-urls= no-grafts no-offload max-silent-time= timeout= verbosity= rounds= cores= max-jobs= |
b83fc85f |
436 | complete -f -c guix -n '__fish_guix_needs_command' -a copy -d 'Copy ITEMS to or from the specified host over SSH.' |
437 | complete -f -c guix -n '__fish_guix_using_command copy' -a "--to=" -d 'send ITEMS to HOST' |
438 | complete -f -c guix -n '__fish_guix_using_command copy' -a "--from=" -d 'receive ITEMS from HOST' |
439 | complete -f -c guix -n '__fish_guix_using_command copy' -s L -d 'prepend DIR to the package module search path' |
440 | complete -f -c guix -n '__fish_guix_using_command copy' -a "--load-path=" -d 'prepend DIR to the package module search path' |
441 | complete -f -c guix -n '__fish_guix_using_command copy' -s K -l keep-failed -d 'keep build tree of failed builds' |
442 | complete -f -c guix -n '__fish_guix_using_command copy' -s k -l keep-going -d 'keep going when some of the derivations fail' |
443 | complete -f -c guix -n '__fish_guix_using_command copy' -s n -l dry-run -d 'do not build the derivations' |
444 | complete -f -c guix -n '__fish_guix_using_command copy' -l fallback -d 'fall back to building when the substituter fails' |
445 | complete -f -c guix -n '__fish_guix_using_command copy' -l no-substitutes -d 'build instead of resorting to pre-built substitutes' |
446 | complete -f -c guix -n '__fish_guix_using_command copy' -a "--substitute-urls=" -d 'fetch substitute from URLS if they are authorized' |
447 | complete -f -c guix -n '__fish_guix_using_command copy' -l no-grafts -d 'do not graft packages' |
dc209d5a |
448 | complete -f -c guix -n '__fish_guix_using_command copy' -l no-offload -d 'do not attempt to offload builds' |
b83fc85f |
449 | complete -f -c guix -n '__fish_guix_using_command copy' -a "--max-silent-time=" -d 'mark the build as failed after SECONDS of silence' |
450 | complete -f -c guix -n '__fish_guix_using_command copy' -a "--timeout=" -d 'mark the build as failed after SECONDS of activity' |
451 | complete -f -c guix -n '__fish_guix_using_command copy' -a "--verbosity=" -d 'use the given verbosity LEVEL' |
452 | complete -f -c guix -n '__fish_guix_using_command copy' -a "--rounds=" -d 'build N times in a row to detect non-determinism' |
453 | complete -f -c guix -n '__fish_guix_using_command copy' -s c -d 'allow the use of up to N CPU cores for the build' |
454 | complete -f -c guix -n '__fish_guix_using_command copy' -a "--cores=" -d 'allow the use of up to N CPU cores for the build' |
455 | complete -f -c guix -n '__fish_guix_using_command copy' -s M -d 'allow at most N build jobs' |
456 | complete -f -c guix -n '__fish_guix_using_command copy' -a "--max-jobs=" -d 'allow at most N build jobs' |
457 | |
458 | #### container |
459 | set -l remotecommands exec |
460 | complete -f -c guix -n '__fish_guix_needs_command' -a container -d 'Build and manipulate Linux containers.' |
461 | complete -f -c guix -n '__fish_guix_using_command container' -l exec -d 'Execute a command inside of an existing container.' |
462 | |
463 | #### challenge |
464 | set -l remotecommands substitute-urls verbose |
465 | complete -f -c guix -n '__fish_guix_needs_command' -a challenge -d 'Challenge the substitutes for PACKAGE provided by one or more servers.' |
466 | complete -f -c guix -n '__fish_guix_using_command challenge' -a "--substitute-urls=" -d 'compare build results with those at URLS' |
467 | complete -f -c guix -n '__fish_guix_using_command challenge' -s v -l verbose -d 'show details about successful comparisons' |
468 | |
469 | #### archive |
dc209d5a |
470 | set -l remotecommands export format= recursive import missing extract= generate-key authorize expression= source system= target= load-path= keep-failed keep-going dry-run fallback no-substitutes substitute-urls= no-grafts no-offload max-silent-time= timeout= verbosity= rounds= cores= max-jobs= |
b83fc85f |
471 | complete -f -c guix -n '__fish_guix_needs_command' -a archive -d 'Export/import one or more packages from/to the store.' |
472 | complete -f -c guix -n '__fish_guix_using_command archive' -l export -d 'export the specified files/packages to stdout' |
473 | complete -f -c guix -n '__fish_guix_using_command archive' -a "--format=" -d 'export files/packages in the specified format FMT' |
474 | complete -f -c guix -n '__fish_guix_using_command archive' -l recursive -d 'combined with \'--export\', include dependencies' |
475 | complete -f -c guix -n '__fish_guix_using_command archive' -l import -d 'import from the archive passed on stdin' |
476 | complete -f -c guix -n '__fish_guix_using_command archive' -l missing -d 'print the files from stdin that are missing' |
477 | complete -f -c guix -n '__fish_guix_using_command archive' -a "--extract=" -d 'extract the archive on stdin to DIR' |
478 | complete -f -c guix -n '__fish_guix_using_command archive' -l generate-key -d 'generate a key pair with the given parameters' |
479 | complete -f -c guix -n '__fish_guix_using_command archive' -l authorize -d 'authorize imports signed by the public key on stdin' |
480 | complete -f -c guix -n '__fish_guix_using_command archive' -a "--expression=" -d 'build the package or derivation EXPR evaluates to' |
481 | complete -f -c guix -n '__fish_guix_using_command archive' -l source -d 'build the packages\' source derivations' |
482 | complete -f -c guix -n '__fish_guix_using_command archive' -a "--system=" -d 'attempt to build for SYSTEM--e.g., "i686-linux"' |
483 | complete -f -c guix -n '__fish_guix_using_command archive' -a "--target=" -d 'cross-build for TRIPLET--e.g., "armel-linux-gnu"' |
484 | complete -f -c guix -n '__fish_guix_using_command archive' -a "--load-path=" -d 'prepend DIR to the package module search path' |
485 | complete -f -c guix -n '__fish_guix_using_command archive' -l keep-failed -d 'keep build tree of failed builds' |
486 | complete -f -c guix -n '__fish_guix_using_command archive' -l keep-going -d 'keep going when some of the derivations fail' |
487 | complete -f -c guix -n '__fish_guix_using_command archive' -l dry-run -d 'do not build the derivations' |
488 | complete -f -c guix -n '__fish_guix_using_command archive' -l fallback -d 'fall back to building when the substituter fails' |
489 | complete -f -c guix -n '__fish_guix_using_command archive' -l no-substitutes -d 'build instead of resorting to pre-built substitutes' |
490 | complete -f -c guix -n '__fish_guix_using_command archive' -a "--substitute-urls=" -d 'fetch substitute from URLS if they are authorized' |
491 | complete -f -c guix -n '__fish_guix_using_command archive' -l no-grafts -d 'do not graft packages' |
dc209d5a |
492 | complete -f -c guix -n '__fish_guix_using_command archive' -l no-offload -d 'do not attempt to offload builds' |
b83fc85f |
493 | complete -f -c guix -n '__fish_guix_using_command archive' -a "--max-silent-time=" -d 'mark the build as failed after SECONDS of silence' |
494 | complete -f -c guix -n '__fish_guix_using_command archive' -a "--timeout=" -f -d 'mark the build as failed after SECONDS of activity' |
495 | complete -f -c guix -n '__fish_guix_using_command archive' -a "--verbosity=" -d 'use the given verbosity LEVEL' |
496 | complete -f -c guix -n '__fish_guix_using_command archive' -a "--rounds=" -d 'build N times in a row to detect non-determinism' |
497 | complete -f -c guix -n '__fish_guix_using_command archive' -a "--cores=" -d 'allow the use of up to N CPU cores for the build' |
498 | complete -f -c guix -n '__fish_guix_using_command archive' -a "--max-jobs=" -d 'allow at most N build jobs' |
499 | |
500 | #### pack |
dc209d5a |
501 | set -l remotecommands --load-path= --keep-failed --keep-going --dry-run --fallback --no-substitutes --substitute-urls= --no-grafts --no-offload --max-silent-time= --timeout= --verbosity= --rounds= --cores= --max-jobs= --with-source= --with-input= --with-graft= --format= --expression= --system= --target= --compression= --symlink= --localstatedir --help --version |
b83fc85f |
502 | complete -f -c guix -n '__fish_guix_needs_command' -a pack -d 'Create a bundle of PACKAGE.' |
503 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--load-path=" -d 'prepend DIR to the package module search path' |
504 | complete -f -c guix -n '__fish_guix_using_command pack' -s L -d 'prepend DIR to the package module search path' |
505 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--keep-failed" -d 'keep build tree of failed builds' |
506 | complete -f -c guix -n '__fish_guix_using_command pack' -s K -d 'keep build tree of failed builds' |
507 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--keep-going" -d 'keep going when some of the derivations fail' |
508 | complete -f -c guix -n '__fish_guix_using_command pack' -s k -d 'keep going when some of the derivations fail' |
509 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--dry-run" -d 'do not build the derivations' |
510 | complete -f -c guix -n '__fish_guix_using_command pack' -s n -d 'do not build the derivations' |
511 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--fallback" -d 'fall back to building when the substituter fails' |
512 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--no-substitutes" -d 'build instead of resorting to pre-built substitutes' |
513 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--substitute-urls=" -d 'fetch substitute from URLS if they are authorized' |
514 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--no-grafts" -d 'do not graft packages' |
dc209d5a |
515 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--no-offload" -d 'do not attempt to offload builds via the build hook' |
b83fc85f |
516 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--max-silent-time=" -d 'mark the build as failed after SECONDS of silence' |
517 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--timeout=" -d 'mark the build as failed after SECONDS of activity' |
518 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--verbosity=" -d 'use the given verbosity LEVEL' |
519 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--rounds=" -d 'build N times in a row to detect non-determinism' |
520 | complete -f -c guix -n '__fish_guix_using_command pack' -s c -d 'allow the use of up to N CPU cores for the build' |
521 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--cores=" -d 'allow the use of up to N CPU cores for the build' |
522 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--max-jobs=" -d 'allow at most N build jobs' |
523 | complete -f -c guix -n '__fish_guix_using_command pack' -s M -d 'allow at most N build jobs' |
524 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--with-source=" -d 'use SOURCE when building the corresponding package' |
525 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--with-input=PACKAGE=REPLACEMENT" -d 'replace dependency PACKAGE by REPLACEMENT' |
526 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--with-graft=PACKAGE=REPLACEMENT" -d 'graft REPLACEMENT on packages that refer to PACKAGE' |
527 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--format=" -d 'build a pack in the given FORMAT' |
528 | complete -f -c guix -n '__fish_guix_using_command pack' -s f -d 'build a pack in the given FORMAT' |
529 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--expression=" -d 'consider the package EXPR evaluates to' |
530 | complete -f -c guix -n '__fish_guix_using_command pack' -s e -d 'consider the package EXPR evaluates to' |
531 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--system=" -d 'attempt to build for SYSTEM--e.g., "i686-linux"' |
532 | complete -f -c guix -n '__fish_guix_using_command pack' -s s -d 'attempt to build for SYSTEM--eg., "i686-linux"' |
533 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--target=" -d 'cross-build for TRIPLET--e.g., "armel-linux-gnu"' |
534 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--compression=" -d 'compress using TOOL--e.g., "lzip"' |
535 | complete -f -c guix -n '__fish_guix_using_command pack' -s C -d 'compress using TOOL--e.g., "lzip"' |
536 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--symlink=" -d 'create symlinks to the profile according to SPEC' |
537 | complete -f -c guix -n '__fish_guix_using_command pack' -s S -d 'create symlinks to the profile according to SPEC' |
538 | complete -f -c guix -n '__fish_guix_using_command pack' -a "--localstatedir" -d 'include /var/guix in the resulting pack' |
539 | |
540 | |
541 | ## weather |
542 | set -l remotecommands substitute-urls manifest system |
543 | complete -f -c guix -n '__fish_guix_needs_command' -a weather -d 'Report the availability of substitutes-' |
544 | complete -f -c guix -n '__fish_guix_using_command weather' -a "--substitute-urls=" -d 'check for available substitutes at URLS' |
545 | complete -f -c guix -n '__fish_guix_using_command weather' -s m -d 'look up substitutes for packages specified in MANIFEST' |
546 | complete -f -c guix -n '__fish_guix_using_command weather' -a "--manifest=" -d 'look up substitutes for packages specified in MANIFEST' |
547 | complete -f -c guix -n '__fish_guix_using_command weather' -s s -d 'consider substitutes for SYSTEM--e.g., "i686-linux"' |
548 | complete -f -c guix -n '__fish_guix_using_command weather' -a "--system=" -d 'consider substitutes for SYSTEM--e.g., "i686-linux"' |