From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ealWv-0007su-37 for guix-patches@gnu.org; Sun, 14 Jan 2018 11:53:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ealWp-0000Qj-3H for guix-patches@gnu.org; Sun, 14 Jan 2018 11:53:09 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:48323) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ealWo-0000QS-PG for guix-patches@gnu.org; Sun, 14 Jan 2018 11:53:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ealWo-0007yh-IP for guix-patches@gnu.org; Sun, 14 Jan 2018 11:53:02 -0500 Subject: [bug#30114] Add fish completion to Guix, remove fish-guix Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ealWD-0007j6-7C for guix-patches@gnu.org; Sun, 14 Jan 2018 11:52:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ealW6-0008VN-IZ for guix-patches@gnu.org; Sun, 14 Jan 2018 11:52:25 -0500 Received: from aibo.runbox.com ([91.220.196.211]:45486) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ealW5-0008Sh-Ql for guix-patches@gnu.org; Sun, 14 Jan 2018 11:52:18 -0500 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1ealW1-0004oG-BC for guix-patches@gnu.org; Sun, 14 Jan 2018 17:52:13 +0100 Received: from dslb-092-073-146-083.092.073.pools.vodafone-ip.de ([92.73.146.83] helo=localhost) by mailfront12.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1ealVn-0001wX-El for guix-patches@gnu.org; Sun, 14 Jan 2018 17:52:00 +0100 Date: Sun, 14 Jan 2018 17:52:01 +0000 From: ng0 Message-ID: <20180114175201.rfkfaf2znojtpelk@abyayala> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dje6ynmsyu3yb6d2" Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30114@debbugs.gnu.org --dje6ynmsyu3yb6d2 Content-Type: multipart/mixed; boundary="cuaxmz2uqtlgrsko" Content-Disposition: inline --cuaxmz2uqtlgrsko Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable If you require a formal statement somewhere that I relicense fish-guix to be able to be merged into Guix, let me know. Otherwise I'll just make a commit in the old repository mentioning it. These two patches: Add etc/completion/fish/guix.fish, add the file to the Makefile + configure.ac, and remove fish-guix. I haven't had the chance to test wether the vendor path works, it did throw no errors when I ran make in the repository and the path resembles what I used in fish-guix. --=20 ng0 :: https://ea.n0.is A88C8ADD129828D7EAC02E52E22F9BBFEE348588 :: https://ea.n0.is/keys/ --cuaxmz2uqtlgrsko Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-etc-Add-completions-for-fish.patch" Content-Transfer-Encoding: quoted-printable =46rom 429a5e809ce4437e349872862e3571dbbeb29bbb Mon Sep 17 00:00:00 2001 =46rom: ng0 Date: Sun, 14 Jan 2018 17:23:00 +0000 Subject: [PATCH 1/2] etc: Add completions for fish. * etc/completion/fish/guix.fish: New file. * Makefile.am: Register the file. * configure.ac: Add the fish vendor-completions directory. --- Makefile.am | 4 + configure.ac | 7 + etc/completion/fish/guix.fish | 548 ++++++++++++++++++++++++++++++++++++++= ++++ 3 files changed, 559 insertions(+) create mode 100644 etc/completion/fish/guix.fish diff --git a/Makefile.am b/Makefile.am index a0e5ff169..aebd3b1eb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -9,6 +9,7 @@ # Copyright =C2=A9 2017 Ricardo Wurmus # Copyright =C2=A9 2017 Jan Nieuwenhuizen # Copyright =C2=A9 2017 Arun Isaac +# Copyright =C2=A9 2018 ng0 # # This file is part of GNU Guix. # @@ -427,6 +428,9 @@ dist_bashcompletion_DATA =3D etc/completion/bash/guix # Zsh completion file. dist_zshcompletion_DATA =3D etc/completion/zsh/_guix =20 +# Fish completion file. +dist_fishcompletion_DATA =3D etc/completion/fish/guix.fish + EXTRA_DIST =3D \ HACKING \ ROADMAP \ diff --git a/configure.ac b/configure.ac index 53efa4a68..1e3912248 100644 --- a/configure.ac +++ b/configure.ac @@ -47,6 +47,13 @@ AC_ARG_WITH([zsh-completion-dir], [zshcompletiondir=3D'${datadir}/zsh/site-functions']) AC_SUBST([zshcompletiondir]) =20 +AC_ARG_WITH([fish-completion-dir], + AC_HELP_STRING([--with-fish-completion-dir=3DDIR], + [name of the Fish completion directory]), + [fishcompletiondir=3D"$withval"], + [fishcompletiondir=3D'${datadir}/fish/vendor_completions.d']) +AC_SUBST([fishcompletiondir]) + dnl Better be verbose. AC_MSG_CHECKING([for the store directory]) AC_MSG_RESULT([$storedir]) diff --git a/etc/completion/fish/guix.fish b/etc/completion/fish/guix.fish new file mode 100644 index 000000000..e9fc9f3d1 --- /dev/null +++ b/etc/completion/fish/guix.fish @@ -0,0 +1,548 @@ +# +# GNU Guix --- Functional package management for GNU +# Copyright =C2=A9 2017, 2018 +# +# This file is part of GNU Guix. +# +# GNU Guix is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or (at +# your option) any later version. +# +# GNU Guix is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Guix. If not, see . + +# Guix commands covered: +# download, pull, system, build, package, size, refresh +# publish, lint, import, hash, graph, gc, environment, +# edit, copy, container, challenge, archive, pack, +# weather + +# Existing commands provided by guix as of 2017-11-30: +# archive, challenge, copy, edit, gc, hash, lint, package +# pull, size, weather, build, container, download, environment +# graph, import, pack, publish, refresh, system + +# TODO: a rewrite similar to rust.fish + +# Use 'command guix' to avoid interactions for aliases. + +## To be used later on: +# function __fish_guix_archive +# end +# function __fish_guix_build_file_ls +# end +# function __fish_guix_challenge +# end +# function __fish_guix_container +# end +# function __fish_guix_copy +# end +# function __fish_guix_download +# end +# function __fish_guix_edit +# end +# function __fish_guix_environment +# end +# function __fish_guix_gc +# end +# function __fish_guix_graph +# end +# function __fish_guix_hash +# end +# function __fish_guix_import +# end +# function __fish_guix_lint +# end +# function __fish_guix_package +# end +# function __fish_guix_publish +# end +# function __fish_guix_pull +# end +# function __fish_guix_refresh +# end +# function __fish_guix_size +# end +# function __fish_guix_system +# end + +function __fish_guix_needs_command + set cmd (commandline -opc) + if [ (count $cmd) -eq 1 ] + return 0 + else + set -l skip_next 1 + # Skip first word because it's "guix" + for c in $cmd[2..-1] + test $skip_next -eq 0 + and set skip_next 1 + and continue + switch $c + # General options that can still take a command + case "=3D*" + continue + # case --asdf + # set skip_next 0 + # continue + # these behave like commands and everything after them= is ignored + case "--help" "--version" + return 1 + # We assume that any other token that's not an argumen= t to a general option is a command + case "*" + echo $c + return 1 + end + end + return 0 + end + return 1 +end + +function __fish_guix_using_command + set -l cmd (__fish_guix_needs_command) + test -z "$cmd" + and return 1 + contains -- $cmd $argv + and return 0 +end + +# general options +complete -f -c guix -s h -l help -d 'Display the manual of a guix command' +complete -f -c guix -s V -l version -d 'Display version information.' + +# shared options +#complete -f -c guix -n '__fish_guix_using_command' + +#### download +set -l remotecommands format no-check-certificate +complete -f -c guix -n '__fish_guix_needs_command' -a download -d 'Downloa= d object from source into the gnu store' +complete -f -c guix -n '__fish_guix_using_command download' -s f -l format= -d'Write the hash in the given format' +complete -f -c guix -n '__fish_guix_using_command download' -l no-check-ce= rtificate -d 'Do not validate the certificate of HTTPS servers' + +#### pull +set -l remotecommands verbose url bootstrap +complete -f -c guix -n '__fish_guix_needs_command' -a pull -d 'Download an= d deploy the latest version of Guix' +complete -f -c guix -n '__fish_guix_using_command pull' -l verbose -d 'pro= duce verbose output' +complete -f -c guix -n '__fish_guix_using_command pull' -l url -d 'downloa= d the Guix tarball from URL' +complete -f -c guix -n '__fish_guix_using_command pull' -l bootstrap -d 'u= se the bootstrap Guile to build the new Guix' + +#### system +set -l remotecommands reconfigure roll-back switch-generation list-generat= ions build container vm vm-image disk-image init extension-graph shepherd-g= raph load-path keep-failed keep-going dry-run fallback no-substitutes subst= itutes-urls no-grafts no-build-hook max-silent-time timeout verbosity round= s cores max-jobs derivation on-error image-size no-grub share expose full-b= oot +complete -f -c guix -n '__fish_guix_needs_command' -a system -d 'Build the= operating system declared in FILE according to ACTION.' +complete -f -c guix -n '__fish_guix_using_command system' -l reconfigure -= d 'switch to a new operating system configuration' +complete -f -c guix -n '__fish_guix_using_command system' -l roll-back -d = 'switch to the previous operating system configuration' +complete -f -c guix -n '__fish_guix_using_command system' -l switch-genera= tion -d 'switch to an existing operating system configuration' +complete -f -c guix -n '__fish_guix_using_command system' -l list-generati= ons -d 'list the system generations' +complete -f -c guix -n '__fish_guix_using_command system' -l build -d 'bui= ld the operating system without installing anything' +complete -f -c guix -n '__fish_guix_using_command system' -l container -d = 'build a container that shares the host\'s store' +complete -f -c guix -n '__fish_guix_using_command system' -l vm -d 'build = a virtual machine image that shares the host\'s store' +complete -f -c guix -n '__fish_guix_using_command system' -l vm-image -d '= build a freestanding virtual machine image' +complete -f -c guix -n '__fish_guix_using_command system' -l disk-image -d= 'build a disk image, suitable for a USB stick' +complete -f -c guix -n '__fish_guix_using_command system' -l init -d 'init= ialize a root file system to run GNU' +complete -f -c guix -n '__fish_guix_using_command system' -l extension-gra= ph -d 'emit the service extension graph in Dot format' +complete -f -c guix -n '__fish_guix_using_command system' -l shepherd-grap= h -d 'emit the graph of shepherd services in Dot format' +complete -f -c guix -n '__fish_guix_using_command system' -s L -d 'prepend= DIR to the package module search path' +complete -f -c guix -n '__fish_guix_using_command system' -a "--load-path= =3D" -d 'prepend DIR to the package module search path' +complete -f -c guix -n '__fish_guix_using_command system' -s K -l keep-fai= led -d 'keep build tree of failed builds' +complete -f -c guix -n '__fish_guix_using_command system' -s k -l keep-goi= ng -d 'keep going when some of the derivations fail' +complete -f -c guix -n '__fish_guix_using_command system' -s n -l dry-run = -d 'do not build the derivations' +complete -f -c guix -n '__fish_guix_using_command system' -l fallback -d '= fall back to building when the substituter fails' +complete -f -c guix -n '__fish_guix_using_command system' -l no-substitute= s -d 'build instead of resorting to pre-built substitutes' +complete -f -c guix -n '__fish_guix_using_command system' -a "--substitute= -urls=3D" -d 'fetch substitute from URLS if they are authorized' +complete -f -c guix -n '__fish_guix_using_command system' -l no-grafts -d = 'do not graft packages' +complete -f -c guix -n '__fish_guix_using_command system' -l no-build-hook= -d 'do not attempt to offload builds via the build hook' +complete -f -c guix -n '__fish_guix_using_command system' -a "--max-silent= -time=3D" -d 'mark the build as failed after SECONDS of silence' +complete -f -c guix -n '__fish_guix_using_command system' -a "--timeout=3D= " -d 'mark the build as failed after SECONDS of activity' +complete -f -c guix -n '__fish_guix_using_command system' -a "--verbosity= =3D" -d 'use the given verbosity LEVEL' +complete -f -c guix -n '__fish_guix_using_command system' -a --"rounds=3D"= -d 'build N times in a row to detect non-determinism' +complete -f -c guix -n '__fish_guix_using_command system' -s c -d 'allow t= he use of up to N CPU cores for the build' +complete -f -c guix -n '__fish_guix_using_command system' -a "--cores=3D" = -d 'allow the use of up to N CPU cores for the build' +complete -f -c guix -n '__fish_guix_using_command system' -s M -d 'allow a= t most N build jobs' +complete -f -c guix -n '__fish_guix_using_command system' -a "--max-jobs= =3D" -d 'allow at most N build jobs' +complete -f -c guix -n '__fish_guix_using_command system' -s d -l derivati= on -d 'return the derivation of the given system' +complete -f -c guix -n '__fish_guix_using_command system' -a "--on-error= =3D" -d 'apply STRATEGY when an error occurs while reading FILE' +complete -f -c guix -n '__fish_guix_using_command system' -a "--image-size= =3D" -d 'for \'vm-image\', produce an image of SIZE' +complete -f -c guix -n '__fish_guix_using_command system' -l no-grub -d 'f= or \'init\', do not install GRUB' +complete -f -c guix -n '__fish_guix_using_command system' -a "--share=3D" = -d 'for \'vm\', share host file system according to SPEC' +complete -f -c guix -n '__fish_guix_using_command system' -a "--expose=3D"= -d 'for \'vm\', expose host file system according to SPEC' +complete -f -c guix -n '__fish_guix_using_command system' -l full-boot -d = 'for \'vm\', make a full boot sequence' + +#### build +set -l remotecommands expression file source sources system target derivat= ions check repair root quiet log-file load-path keep-failed keep-going dry-= run fallback no-substitutes substitute-urls no-grafts no-build-hook max-sil= ent-time timeout verbosity rounds cores max-jobs with-source with-input wit= h-graft +complete -f -c guix -n '__fish_guix_needs_command' -a build -d 'Build the = given PACKAGE-OR-DERIVATION and return their output paths.' +complete -f -c guix -n '__fish_guix_using_command build' -a "--expression= =3D" -d 'build the package or derivation EXPR evaluates to' +complete -f -c guix -n '__fish_guix_using_command build' -s f -d 'build th= e package or derivation that the code within FILE evaluates to' --exclusive= --arguments "(ls -ap)" +# The command below is broken: +complete -f -c guix -n '__fish_guix_using_command build' -a '--file=3D' -a= '(ls -ap)' -d 'build the package or derivation that the code within FILE e= valuates to' +complete -f -c guix -n '__fish_guix_using_command build' -s S -l source -d= 'build the packages\' source derivations' +complete -f -c guix -n '__fish_guix_using_command build' -l sources -d 'bu= ild source derivations, TYPE may optionally be one of "package", "all" (def= ault), or "transitive"' -a "package all transitive" -a "package all transit= ive" +complete -f -c guix -n '__fish_guix_using_command build' -s s -d 'attempt = to build for SYSTEM--e.g., "i686-linux"' +complete -f -c guix -n '__fish_guix_using_command build' -a "--system=3D" = -d 'attempt to build for SYSTEM--e.g., "i686-linux"' +complete -f -c guix -n '__fish_guix_using_command build' -a "--target=3D" = -d 'cross-build for TRIPLET--e.g., "armel-linux-gnu"' +complete -f -c guix -n '__fish_guix_using_command build' -s d -l derivatio= ns -d 'return the derivation paths of the given packages' +complete -f -c guix -n '__fish_guix_using_command build' -l check -d 'rebu= ild items to check for non-determinism issues' +complete -f -c guix -n '__fish_guix_using_command build' -l repair -d 'rep= air the specified items' +complete -f -c guix -n '__fish_guix_using_command build' -s r -d 'make FIL= E a symlink to the result, and register it as a garbage collector root' +complete -f -c guix -n '__fish_guix_using_command build' -a "--root=3D" -d= 'make FILE a symlink to the result, and register it as a garbage collector= root' +complete -f -c guix -n '__fish_guix_using_command build' -s q -l quiet -d = 'do not show the build log' +complete -f -c guix -n '__fish_guix_using_command build' -l log-file -d 'r= eturn the log file names for the given derivations' +complete -f -c guix -n '__fish_guix_using_command build' -s L -d 'prepend = DIR to the package module search path' +complete -f -c guix -n '__fish_guix_using_command build' -a "--load-path= =3D" -d 'prepend DIR to the package module search path' +complete -f -c guix -n '__fish_guix_using_command build' -s K -l keep-fail= ed -d 'keep build tree of failed builds' +complete -f -c guix -n '__fish_guix_using_command build' -s k -l keep-goin= g -d 'keep going when some of the derivations fail' +complete -f -c guix -n '__fish_guix_using_command build' -s n -l dry-run -= d 'do not build the derivations' +complete -f -c guix -n '__fish_guix_using_command build' -l fallback -d 'f= all back to building when the substituter fails' +complete -f -c guix -n '__fish_guix_using_command build' -l no-substitutes= -d 'build instead of resorting to pre-built substitutes' +complete -f -c guix -n '__fish_guix_using_command build' -a "--substitute-= urls=3D" -d 'fetch substitute from URLS if they are authorized' +complete -f -c guix -n '__fish_guix_using_command build' -l no-grafts -d '= do not graft packages' +complete -f -c guix -n '__fish_guix_using_command build' -l no-build-hook = -d 'do not attempt to offload builds via the build hook' +complete -f -c guix -n '__fish_guix_using_command build' -a "--max-silent-= time=3D" -d 'mark the build as failed after SECONDS of silence' +complete -f -c guix -n '__fish_guix_using_command build' -a "--timeout=3D"= -d 'mark the build as failed after SECONDS of activity' +complete -f -c guix -n '__fish_guix_using_command build' -a "--verbosity= =3D" -d 'use the given verbosity LEVEL' +complete -f -c guix -n '__fish_guix_using_command build' -a "--rounds=3D" = -d 'build N times in a row to detect non-determinism' +complete -f -c guix -n '__fish_guix_using_command build' -s c -d 'allow th= e use of up to N CPU cores for the build' +complete -f -c guix -n '__fish_guix_using_command build' -a "--cores=3D" -= d 'allow the use of up to N CPU cores for the build' +complete -f -c guix -n '__fish_guix_using_command build' -s M -d 'allow at= most N build jobs' +complete -f -c guix -n '__fish_guix_using_command build' -a "--max-jobs=3D= " -d 'allow at most N build jobs' +complete -f -c guix -n '__fish_guix_using_command build' -a "--with-source= =3D" -d 'use SOURCE when building the corresponding package' +complete -f -c guix -n '__fish_guix_using_command build' -a "--with-input= =3D" -d 'PACKAGE=3DREPLACEMENT .. replace dependency PACKAGE by REPLACEMENT' +complete -f -c guix -n '__fish_guix_using_command build' -a "--with-graft= =3D" -d 'PACKAGE=3DREPLACEMENT .. graft REPLACEMENT on packages that refer = to PACKAGE' + +#### package +set -l remotecommands install install-from-expression install-from-file re= move 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 fal= lback no.substitutes substitute-urls no-grafts no-build-hook max-silent-tim= e timenout verbosity rounds cores max-jobs with-source with-input with-graft +complete -f -c guix -n '__fish_guix_needs_command' -a package -d 'Install,= remove, or upgrade packages in a single transaction.' +complete -f -c guix -n '__fish_guix_using_command package' -s i -l install= -d 'install PACKAGEs' +complete -f -c guix -n '__fish_guix_using_command package' -s e -d 'instal= l the package EXP evaluates to' +complete -f -c guix -n '__fish_guix_using_command package' -a "--install-f= rom-expression=3D" -d 'install the package EXP evaluates to' +complete -f -c guix -n '__fish_guix_using_command package' -s f -d 'instal= l the package that the code within FILE evaluates to' +complete -f -c guix -n '__fish_guix_using_command package' -a "--install-f= rom-file=3D" -d 'install the package that the code within FILE evaluates to' +complete -f -c guix -n '__fish_guix_using_command package' -s r -l remove = -d 'remove PACKAGEs' +complete -f -c guix -n '__fish_guix_using_command package' -s u -l upgrade= -d '[=3DREGEXP] upgrade all the installed packages matching REGEXP' +complete -f -c guix -n '__fish_guix_using_command package' -s m -d 'create= a new profile generation with the manifest from FILE' +complete -f -c guix -n '__fish_guix_using_command package' -a "--manifest= =3D" -d 'create a new profile generation with the manifest from FILE' +complete -f -c guix -n '__fish_guix_using_command package' -l do-not-upgra= de -d '[=3DREGEXP] do not upgrade any packages matching REGEXP' +complete -f -c guix -n '__fish_guix_using_command package' -l roll-back -d= 'roll back to the previous generation' +complete -f -c guix -n '__fish_guix_using_command package' -l search-paths= -d '[=3DKIND] display needed environment variable definitions' +complete -f -c guix -n '__fish_guix_using_command package' -s l -l list-ge= nerations -d '[=3DPATTERN] list generations matching PATTERN' +complete -f -c guix -n '__fish_guix_using_command package' -s d -l delete-= generations -d '[=3DPATTERN] delete generations matching PATTERN' +complete -f -c guix -n '__fish_guix_using_command package' -s S -d 'PATTER= N switch to a generation matching PATTERN' +complete -f -c guix -n '__fish_guix_using_command package' -a "--switch-ge= neration=3D" -d 'PATTERN switch to a generation matching PATTERN' +complete -f -c guix -n '__fish_guix_using_command package' -s p -d 'use PR= OFILE instead of the user\'s default profile' +complete -f -c guix -n '__fish_guix_using_command package' -a "--profile= =3D" -d 'use PROFILE instead of the user\'s default profile' +complete -f -c guix -n '__fish_guix_using_command package' -l bootstrap -d= 'use the bootstrap Guile to build the profile' +complete -f -c guix -n '__fish_guix_using_command package' -l verbose -d '= produce verbose output' +complete -f -c guix -n '__fish_guix_using_command package' -s s -d 'REGEXP= search in synopsis and description using REGEXP' +complete -f -c guix -n '__fish_guix_using_command package' -a "--search=3D= " -d 'REGEXP search in synopsis and description using REGEXP' +complete -f -c guix -n '__fish_guix_using_command package' -s I -l list-in= stalled -d '[=3DREGEXP] list installed packages matching REGEXP' +#complete -c guix -n '__fish_guix_using_command package' -s I -l list-inst= alled --exclusive --arguments "(guix package --list-installed)" --descripti= on 'List installed packages matching REGEXP' +complete -f -c guix -n '__fish_guix_using_command package' -s A -l list-av= ailable -d '[=3DREGEXP] list available packages matching REGEXP' +complete -f -c guix -n '__fish_guix_using_command package' -a "--show=3D" = -d 'PACKAGE show details about PACKAGE' +complete -f -c guix -n '__fish_guix_using_command package' -s L -d 'DIR pr= epend DIR to the package module search path' +complete -f -c guix -n '__fish_guix_using_command package' -a "--load-path= =3D" -d 'DIR prepend DIR to the package module search path' +complete -f -c guix -n '__fish_guix_using_command package' -s K -l keep-fa= iled -d 'keep build tree of failed builds' +complete -f -c guix -n '__fish_guix_using_command package' -s k -l keep-go= ing -d 'keep going when some of the derivations fail' +complete -f -c guix -n '__fish_guix_using_command package' -s n -l dry-run= -d 'do not build the derivations' +complete -f -c guix -n '__fish_guix_using_command package' -l fallback -d = 'fall back to building when the substituter fails' +complete -f -c guix -n '__fish_guix_using_command package' -l no-substitut= es -d 'build instead of resorting to pre-built substitutes' +complete -f -c guix -n '__fish_guix_using_command package' -a "--substitut= e-urls=3D" -d 'URLS fetch substitute from URLS if they are authorized' +complete -f -c guix -n '__fish_guix_using_command package' -l no-grafts -d= 'do not graft packages' +complete -f -c guix -n '__fish_guix_using_command package' -l no-build-hoo= k -d 'do not attempt to offload builds via the build hook' +complete -f -c guix -n '__fish_guix_using_command package' -a "--max-silen= t-time=3D" -d 'SECONDS mark the build as failed after SECONDS of silence' +complete -f -c guix -n '__fish_guix_using_command package' -a "--timeout= =3D" -d 'SECONDS mark the build as failed after SECONDS of activity' +complete -f -c guix -n '__fish_guix_using_command package' -a "--verbosity= =3D" -d 'LEVEL use the given verbosity LEVEL' +complete -f -c guix -n '__fish_guix_using_command package' -a "--rounds=3D= " -d 'N build N times in a row to detect non-determinism' +complete -f -c guix -n '__fish_guix_using_command package' -s c -d 'N allo= w the use of up to N CPU cores for the build' +complete -f -c guix -n '__fish_guix_using_command package' -a "--cores=3D"= -d 'N allow the use of up to N CPU cores for the build' +complete -f -c guix -n '__fish_guix_using_command package' -s M -l max-job= s=3D -d 'N allow at most N build jobs' +complete -f -c guix -n '__fish_guix_using_command package' -a "--max-jobs= =3D" -d 'N allow at most N build jobs' +complete -f -c guix -n '__fish_guix_using_command package' -a "--with-sour= ce=3D" -d 'SOURCE use SOURCE when building the corresponding package' +complete -f -c guix -n '__fish_guix_using_command package' -a "--with-inpu= t=3D" -d 'PACKAGE=3DREPLACEMENT replace dependency PACKAGE by REPLACEMENT' +complete -f -c guix -n '__fish_guix_using_command package' -a "--with-graf= t=3D" -d 'PACKAGE=3DREPLACEMENT graft REPLACEMENT on packages that refer to= PACKAGE' + +#### size +set -l remotecommands substitute-urls=3D system=3D map-file=3D +complete -f -c guix -n '__fish_guix_needs_command' -a size -d 'Report the = size of PACKAGE and its dependencies.' +complete -f -c guix -n '__fish_guix_using_command size' -a "--substitute-u= rls=3D" -d 'fetch substitute from URLS if they are authorized' +complete -f -c guix -n '__fish_guix_using_command size' -a "--system=3D" -= d 'consider packages for SYSTEM--e.g., "i686-linux"' +complete -f -c guix -n '__fish_guix_using_command size' -a "--map-file=3D"= -d 'write to FILE a graphical map of disk usage' + +#### refresh +set -l remotecommands expression update select type list-updaters list-dep= endent key-server gpg key-download +complete -f -c guix -n '__fish_guix_needs_command' -a refresh -d 'Update p= ackage definitions to match the latest upstream version' +# FIXME: Too long. When PACKAGE... is given, update only the specified pac= kages. Otherwise update all the packages of the distribution, or the subset= thereof specified with `--select`.' +complete -f -c guix -n '__fish_guix_using_command refresh' -a "--expressio= n=3D" -d 'consider the package EXPR evaluates to' +complete -f -c guix -n '__fish_guix_using_command refresh' -l update -d 'u= pdate source files in place' +#complete -f -c guix -n '__fish_guix_using_command refresh' -l select=3D -= d 'select all the packages in SUBSET, one of `core` or `non-core`' --exclus= ive --arguments "core non-core" +complete -f -c guix -n '__fish_guix_using_command refresh' -a "--select=3D= " -d 'select all the packages in SUBSET, one of `core` or `non-core`' --exc= lusive --arguments "core non-core" +complete -f -c guix -n '__fish_guix_using_command refresh' -a "--type=3D" = -d 'restrict to updates from the specified updaters (e.g., \'gnu\')' --excl= usive --arguments "gnu gnome kde xorg kernel.org elpa cran bioconductor cpa= n pypi gem github hackage crate" +complete -f -c guix -n '__fish_guix_using_command refresh' -l list-updater= s -d 'list available updaters and exit' +complete -f -c guix -n '__fish_guix_using_command refresh' -l list-depende= nt -d 'list top-level dependent packages that would need to be rebuilt as a= result of upgrading PACKAGE' +complete -f -c guix -n '__fish_guix_using_command refresh' -a "--key-serve= r=3D" -d 'use HOST as the OpenPGP key server' +complete -f -c guix -n '__fish_guix_using_command refresh' -a "--gpg=3D" -= d 'use COMMAND as the GnuPG 2.x command' +complete -f -c guix -n '__fish_guix_using_command refresh' -a "--key-downl= oad=3D" -d 'handle missing OpenPGP keys according to POLICY.' --exclusive -= -arguments "always never interactive" + +#### publish +set -l remotecommands port=3D listen=3D user=3D compression ttl=3D repl +complete -f -c guix -n '__fish_guix_needs_command' -a publish -d 'Publish = /gnu/store over HTTP.' +complete -f -c guix -n '__fish_guix_using_command publish' -a "--port=3D" = -d 'listen on PORT' +complete -f -c guix -n '__fish_guix_using_command publish' -a "--listen=3D= " -d 'listen on the network interface for HOST' +complete -f -c guix -n '__fish_guix_using_command publish' -a "--user=3D" = -d 'change privileges to USER as soon as possible' +complete -f -c guix -n '__fish_guix_using_command publish' -l compression = -d '[=3DLEVEL] compress archives at LEVEL' +complete -f -c guix -n '__fish_guix_using_command publish' -a "--ttl=3D" -= d 'announce narinfos can be cached for TTL seconds' +complete -f -c guix -n '__fish_guix_using_command publish' -l repl -d '[= =3DPORT] spawn REPL server on PORT' + +#### lint +set -l remotecommands checkers list-checkers +complete -f -c guix -n '__fish_guix_needs_command' -a lint -d 'Run a set o= f checkers on the specificied package.' +complete -f -c guix -n '__fish_guix_using_command lint' -l list-checkers -= d 'Display the list of available lint checkers.' +complete -f -c guix -n '__fish_guix_using_command lint' -l checkers -d 'On= ly run the specified checkers.' +complete -f -c guix -n '__fish_guix_using_command lint' -l description -d = 'Validate package descriptions.' +complete -f -c guix -n '__fish_guix_using_command lint' -l gnu-description= -d 'Validate synopsis and descriptions of the GNU packages.' +complete -f -c guix -n '__fish_guix_using_command lint' -l inputs-should-b= e-native -d 'Identify inputs that should be native inputs.' +complete -f -c guix -n '__fish_guix_using_command lint' -l inputs-should-n= ot-be-inputs -d 'Identify inputs that should not be inputs at all.' +complete -f -c guix -n '__fish_guix_using_command lint' -l patch-file-name= s -d 'Validate file names anda availability of patches.' +complete -f -c guix -n '__fish_guix_using_command lint' -l home-page -d 'V= alidate home-page URLs' +complete -f -c guix -n '__fish_guix_using_command lint' -l license -d 'Mak= e sure the "license" field is a or a list thereof' +complete -f -c guix -n '__fish_guix_using_command lint' -l source -d 'Vali= date source URLs' +complete -f -c guix -n '__fish_guix_using_command lint' -l mirror-url -d '= Suggest "mirror://" URLs' +complete -f -c guix -n '__fish_guix_using_command lint' -l source-file-nam= e -d 'Validate file names of sources' +complete -f -c guix -n '__fish_guix_using_command lint' -l derivation -d '= Report failure to compile a package to a derivation' +complete -f -c guix -n '__fish_guix_using_command lint' -l synopsis -d 'Va= lidate package synopses' +complete -f -c guix -n '__fish_guix_using_command lint' -l cve -d 'Check t= he Common Vulnerabilities and Exposures (CVE) database' +complete -f -c guix -n '__fish_guix_using_command lint' -l formatting -d '= Look for formatting issues in the source' + +#### import +set -l remotecommands import gnu nix pypi cpan hackage elpa gem cran crate= texlive json +complete -f -c guix -n '__fish_guix_needs_command' -a import -d 'Run IMPOR= TER with ARGS' +##### import gnu +complete -f -c guix -n '__fish_guix_using_command import; and not __fish_s= een_subcommand_from $remotecommands' -a gnu -d 'Return a package declaratio= n template for PACKAGE, a GNU package.' +complete -f -c guix -n '__fish_guix_using_command import; and __fish_seen_= subcommand_from gnu' -a "--key-download=3D" -d 'handle missing OpenPGP keys= according to POLICY: "always", "never", and "interactive", which is also u= sed when "key-download" is not specified.' +##### import nix +complete -f -c guix -n '__fish_guix_using_command import; and not __fish_s= een_subcommand_from $remotecommands' -a nix -d 'Import and convert the Nix = expression ATTRIBUTE of NIXPKGS.' +##### import pypi +complete -f -c guix -n '__fish_guix_using_command import; and not __fish_s= een_subcommand_from $remotecommands' -a pypi -d 'Import and convert the PyP= I package for PACKAGE-NAME.' +##### import cpan +complete -f -c guix -n '__fish_guix_using_command import; and not __fish_s= een_subcommand_from $remotecommands' -a cpan -d 'Import and convert the CPA= N package for PACKAGE-NAME.' +##### import hackage +complete -f -c guix -n '__fish_guix_using_command import; and not __fish_s= een_subcommand_from $remotecommands' -a hackage -d 'Import and convert the = Hackage package for PACKAGE-NAME. If PACKAGE-NAME includes a suffix consti= tuted by a at-sign followed by a numerical version (as used with Guix packa= ges), then a definition for the specified version of the package will be ge= nerated. If no version suffix is pecified, then the generated package defi= nition will correspond to the latest available version.' +complete -f -c guix -n '__fish_guix_using_command import; and __fish_seen_= subcommand_from hackage' -s e -d 'ALIST specify environment for Cabal evalu= ation.' +complete -f -c guix -n '__fish_guix_using_command import; and __fish_seen_= subcommand_from hackage' -a "--cabal-environment=3D" -d 'ALIST specify envi= ronment for Cabal evaluation.' +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.' +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 te= st-only dependencies.' +##### import elpa +complete -f -c guix -n '__fish_guix_using_command import; and not __fish_s= een_subcommand_from $remotecommands' -a elpa -d 'Import the latest package = named PACKAGE-NAME from an ELPA repository.' +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" +complete -f -c guix -n '__fish_guix_using_command import; and __fish_seen_= subcommand_from elpa' -a "--archive=3D" -d 'specify the archive repository'= --exclusive --arguments "gnu melpa-stable melpa" +##### import gem +complete -f -c guix -n '__fish_guix_using_command import; and not __fish_s= een_subcommand_from $remotecommands' -a gem -d 'Import and convert the Ruby= Gems package for PACKAGE-NAME.' +##### import cran +complete -f -c guix -n '__fish_guix_using_command import; and not __fish_s= een_subcommand_from $remotecommands' -a cran -d 'Import and convert the CRA= N package for PACKAGE-NAME.' +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" +complete -f -c guix -n '__fish_guix_using_command import; and __fish_seen_= subcommand_from cran' -a "--archive=3D" -d 'specify the archive repository'= --exclusive --arguments "bioconductor cran" +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 p= ackages that are not yet in Guix' +##### import crate +complete -f -c guix -n '__fish_guix_using_command import; and not __fish_s= een_subcommand_from $remotecommands' -a crate -d 'Import and convert the cr= ate.io package for PACKAGE-NAME.' +##### import json +complete -f -c guix -n '__fish_guix_using_command import; and not __fish_s= een_subcommand_from $remotecommands' -a json -d 'Import and convert the JSO= N package definition in PACKAGE-FILE.' +##### import texlive +complete -f -c guix -n '__fish_guix_using_command import; and not __fish_s= een_subcommand_from $remotecommands' -a texlive -d 'Import and convert the = Texlive package for PACKAGE-NAME.' +complete -f -c guix -n '__fish_guix_using_command import; and __fish_seen_= subcommand_from texlive' -s a -l "--archive=3D" -d 'specify the archive rep= ository' + +#### hash +set -l remotecommands exclude-vcs format=3D recursive +complete -f -c guix -n '__fish_guix_needs_command' -a hash -d 'Return the = cryptographic hash of a FILE.' +complete -f -c guix -n '__fish_guix_using_command hash' -s x -l exclude-vc= s -d 'Exclude version control directories.' +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 base= 16 hex hexadecimal" +complete -f -c guix -n '__fish_guix_using_command hash' -a "--format=3D" -= d 'Write the hash in the given format.' --exclusive --arguments "nix-base32= base32 base16 hex hexadecimal" +complete -f -c guix -n '__fish_guix_using_command hash' -s r -l recursive = -d 'Compute the hash on FILE recursively.' + +#### graph +set -l remotecommands backend list-backends type list-types expression +complete -f -c guix -n '__fish_guix_needs_command' -a graph -d 'Emit a Gra= phviz (dot) representation of the dependencies of a PACKAGE.' +complete -f -c guix -n '__fish_guix_using_command graph' -l backend -d 'Pr= oduce a graph with the given backend TYPE' +complete -f -c guix -n '__fish_guix_using_command graph' -l list-backends = -d 'list the available graph backends' +complete -f -c guix -n '__fish_guix_using_command graph' -l type -d 'repre= sent nodes of the given TYPE' +complete -f -c guix -n '__fish_guix_using_command graph' -l list-types -d = 'list the available graph types' +complete -f -c guix -n '__fish_guix_using_command graph' -l expression -d = 'consider the package EXPR evaluates to' + +#### gc +set -l remotecommands collect-garbage free-space delete optimize list-dead= list-live references requisites referrers verify list-failures clear-failu= res +complete -f -c guix -n '__fish_guix_needs_command' -a gc -d 'Invoke the ga= rbage collector.' +complete -f -c guix -n '__fish_guix_using_command gc' -s C -d 'collect at = least MIN bytes of garbage' +complete -f -c guix -n '__fish_guix_using_command gc' -a "--collect-garbag= e=3D" -d 'collect at least MIN bytes of garbage' +complete -f -c guix -n '__fish_guix_using_command gc' -s F -d 'attempt to = reach FREE available space in the store' +complete -f -c guix -n '__fish_guix_using_command gc' -a "--free-space=3D"= -d 'attempt to reach FREE available space in the store' +complete -f -c guix -n '__fish_guix_using_command gc' -s d -l delete -d 'a= ttempt to delete PATHS' +complete -f -c guix -n '__fish_guix_using_command gc' -l optimize -d 'opti= mize the store by deduplicating identical files' +complete -f -c guix -n '__fish_guix_using_command gc' -l list-dead -d 'lis= t dead paths' +complete -f -c guix -n '__fish_guix_using_command gc' -l list-live -d 'lis= t live paths' +complete -f -c guix -n '__fish_guix_using_command gc' -l references -d 'li= st the references of PATHS' +complete -f -c guix -n '__fish_guix_using_command gc' -s R -l requisites -= d 'list the requisites of PATHS' +complete -f -c guix -n '__fish_guix_using_command gc' -l referrers -d 'lis= t the referrers of PATHS' +complete -f -c guix -n '__fish_guix_using_command gc' -l verify -d 'verify= the integrity of the store +OPTS is a comma-separated combination of \'repair\' and \'contents\'' +complete -f -c guix -n '__fish_guix_using_command gc' -l list-failures -d = 'list cached build failures' +complete -f -c guix -n '__fish_guix_using_command gc' -l clear-failures -d= 'remove PATHS from the set of cached failures' + +#### environment +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-build-hook max= -silent-time timeout verbosity rounds cores max-jobs +complete -f -c guix -n '__fish_guix_needs_command' -a environment -d 'Buil= d an environment that includes the dependencies of PACKAGE and execute COMM= AND or an interactive shell in that environment.' +complete -f -c guix -n '__fish_guix_using_command environment' -s e -d 'Cr= eate environment for the package that EXPR evaluates to' +complete -f -c guix -n '__fish_guix_using_command environment' -a "--expre= ssion=3D" -d 'Create environment for the package that EXPR evaluates to' +complete -f -c guix -n '__fish_guix_using_command environment' -s l -d 'cr= eate environment for the package that the code within FILE evaluates to.' +complete -f -c guix -n '__fish_guix_using_command environment' -a "--load= =3D" -d 'create environment for the package that the code within FILE evalu= ates to.' +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' +complete -f -c guix -n '__fish_guix_using_command environment' -l pure -d = 'unset existing environment variables' +complete -f -c guix -n '__fish_guix_using_command environment' -l search-p= aths -d 'display needed environment variable definitions' +complete -f -c guix -n '__fish_guix_using_command environment' -s s -d 'at= tempt to build for SYSTEM--e.g., "i686-linux"' +complete -f -c guix -n '__fish_guix_using_command environment' -a "--syste= m=3D" -d 'attempt to build for SYSTEM--e.g., "i686-linux"' +complete -f -c guix -n '__fish_guix_using_command environment' -s r -d 'ma= ke FILE a symlink to the result, and register it as a garbage collector roo= t' +complete -f -c guix -n '__fish_guix_using_command environment' -a "--root= =3D" -d 'make FILE a symlink to the result, and register it as a garbage co= llector root' +complete -f -c guix -n '__fish_guix_using_command environment' -s C -l con= tainer -d 'run command within an isolated container' +complete -f -c guix -n '__fish_guix_using_command environment' -s N -l net= work -d 'allow containers to access the network' +complete -f -c guix -n '__fish_guix_using_command environment' -a "--share= =3D" -d 'for containers, share writable host file system according to SPEC' +complete -f -c guix -n '__fish_guix_using_command environment' -a "--expos= e=3D" -d 'for containers, expose read-only host file system according to SP= EC' +complete -f -c guix -n '__fish_guix_using_command environment' -l bootstra= p -d 'use bootstrap binaries to build the environment' +complete -f -c guix -n '__fish_guix_using_command environment' -s L -d 'pr= epend DIR to the package module search path' +complete -f -c guix -n '__fish_guix_using_command environment' -a "--load-= path=3D" -d 'prepend DIR to the package module search path' +complete -f -c guix -n '__fish_guix_using_command environment' -s K -l kee= p-failed -d 'keep build tree of failed builds' +complete -f -c guix -n '__fish_guix_using_command environment' -s k -l kee= p-going -d 'keep going when some of the derivations fail' +complete -f -c guix -n '__fish_guix_using_command environment' -s n -l dry= -run -d 'do not build the derivations' +complete -f -c guix -n '__fish_guix_using_command environment' -l fallback= -d 'fall back to building when the substituter fails' +complete -f -c guix -n '__fish_guix_using_command environment' -l no-subst= itutes -d 'build instead of resorting to pre-built substitutes' +complete -f -c guix -n '__fish_guix_using_command environment' -a "--subst= itute-urls=3D" -d 'fetch substitute from URLS if they are authorized' +complete -f -c guix -n '__fish_guix_using_command environment' -l no-graft= s -d 'do not graft packages' +complete -f -c guix -n '__fish_guix_using_command environment' -l no-build= -hook -d 'do not attempt to offload builds via the build hook' +complete -f -c guix -n '__fish_guix_using_command environment' -a "--max-s= ilent-time=3D" -d 'mark the build as failed after SECONDS of silence' +complete -f -c guix -n '__fish_guix_using_command environment' -a "--timeo= ut=3D" -d 'mark the build as failed after SECONDS of activity' +complete -f -c guix -n '__fish_guix_using_command environment' -a "--verbo= sity=3D" -d 'use the given verbosity LEVEL' +complete -f -c guix -n '__fish_guix_using_command environment' -a "--round= s=3D" -d 'build N times in a row to detect non-determinism' +complete -f -c guix -n '__fish_guix_using_command environment' -s c -d 'al= low the use of up to N CPU cores for the build' +complete -f -c guix -n '__fish_guix_using_command environment' -a "--cores= =3D" -d 'allow the use of up to N CPU cores for the build' +complete -f -c guix -n '__fish_guix_using_command environment' -s M -d 'al= low at most N build jobs' +complete -f -c guix -n '__fish_guix_using_command environment' -a "--max-j= obs=3D" -d 'allow at most N build jobs' + +#### edit +complete -f -c guix -n '__fish_guix_needs_command' -a edit -d 'Start $VISU= AL or $EDITOR to edit the definitions of PACKAGE.' + +#### copy +set -l remotecommands to=3D from=3D load-path=3D keep-failed keep-going dr= y-run fallback no-substitutes substitute-urls=3D no-grafts no-build-hook ma= x-silent-time=3D timeout=3D verbosity=3D rounds=3D cores=3D max-jobs=3D +complete -f -c guix -n '__fish_guix_needs_command' -a copy -d 'Copy ITEMS = to or from the specified host over SSH.' +complete -f -c guix -n '__fish_guix_using_command copy' -a "--to=3D" -d 's= end ITEMS to HOST' +complete -f -c guix -n '__fish_guix_using_command copy' -a "--from=3D" -d = 'receive ITEMS from HOST' +complete -f -c guix -n '__fish_guix_using_command copy' -s L -d 'prepend D= IR to the package module search path' +complete -f -c guix -n '__fish_guix_using_command copy' -a "--load-path=3D= " -d 'prepend DIR to the package module search path' +complete -f -c guix -n '__fish_guix_using_command copy' -s K -l keep-faile= d -d 'keep build tree of failed builds' +complete -f -c guix -n '__fish_guix_using_command copy' -s k -l keep-going= -d 'keep going when some of the derivations fail' +complete -f -c guix -n '__fish_guix_using_command copy' -s n -l dry-run -d= 'do not build the derivations' +complete -f -c guix -n '__fish_guix_using_command copy' -l fallback -d 'fa= ll back to building when the substituter fails' +complete -f -c guix -n '__fish_guix_using_command copy' -l no-substitutes = -d 'build instead of resorting to pre-built substitutes' +complete -f -c guix -n '__fish_guix_using_command copy' -a "--substitute-u= rls=3D" -d 'fetch substitute from URLS if they are authorized' +complete -f -c guix -n '__fish_guix_using_command copy' -l no-grafts -d 'd= o not graft packages' +complete -f -c guix -n '__fish_guix_using_command copy' -l no-build-hook -= d 'do not attempt to offload builds via the build hook' +complete -f -c guix -n '__fish_guix_using_command copy' -a "--max-silent-t= ime=3D" -d 'mark the build as failed after SECONDS of silence' +complete -f -c guix -n '__fish_guix_using_command copy' -a "--timeout=3D" = -d 'mark the build as failed after SECONDS of activity' +complete -f -c guix -n '__fish_guix_using_command copy' -a "--verbosity=3D= " -d 'use the given verbosity LEVEL' +complete -f -c guix -n '__fish_guix_using_command copy' -a "--rounds=3D" -= d 'build N times in a row to detect non-determinism' +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' +complete -f -c guix -n '__fish_guix_using_command copy' -a "--cores=3D" -d= 'allow the use of up to N CPU cores for the build' +complete -f -c guix -n '__fish_guix_using_command copy' -s M -d 'allow at = most N build jobs' +complete -f -c guix -n '__fish_guix_using_command copy' -a "--max-jobs=3D"= -d 'allow at most N build jobs' + +#### container +set -l remotecommands exec +complete -f -c guix -n '__fish_guix_needs_command' -a container -d 'Build = and manipulate Linux containers.' +complete -f -c guix -n '__fish_guix_using_command container' -l exec -d 'E= xecute a command inside of an existing container.' + +#### challenge +set -l remotecommands substitute-urls verbose +complete -f -c guix -n '__fish_guix_needs_command' -a challenge -d 'Challe= nge the substitutes for PACKAGE provided by one or more servers.' +complete -f -c guix -n '__fish_guix_using_command challenge' -a "--substit= ute-urls=3D" -d 'compare build results with those at URLS' +complete -f -c guix -n '__fish_guix_using_command challenge' -s v -l verbo= se -d 'show details about successful comparisons' + +#### archive +set -l remotecommands export format=3D recursive import missing extract=3D= generate-key authorize expression=3D source system=3D target=3D load-path= =3D keep-failed keep-going dry-run fallback no-substitutes substitute-urls= =3D no-grafts no-build-hook max-silent-time=3D timeout=3D verbosity=3D roun= ds=3D cores=3D max-jobs=3D +complete -f -c guix -n '__fish_guix_needs_command' -a archive -d 'Export/i= mport one or more packages from/to the store.' +complete -f -c guix -n '__fish_guix_using_command archive' -l export -d 'e= xport the specified files/packages to stdout' +complete -f -c guix -n '__fish_guix_using_command archive' -a "--format=3D= " -d 'export files/packages in the specified format FMT' +complete -f -c guix -n '__fish_guix_using_command archive' -l recursive -d= 'combined with \'--export\', include dependencies' +complete -f -c guix -n '__fish_guix_using_command archive' -l import -d 'i= mport from the archive passed on stdin' +complete -f -c guix -n '__fish_guix_using_command archive' -l missing -d '= print the files from stdin that are missing' +complete -f -c guix -n '__fish_guix_using_command archive' -a "--extract= =3D" -d 'extract the archive on stdin to DIR' +complete -f -c guix -n '__fish_guix_using_command archive' -l generate-key= -d 'generate a key pair with the given parameters' +complete -f -c guix -n '__fish_guix_using_command archive' -l authorize -d= 'authorize imports signed by the public key on stdin' +complete -f -c guix -n '__fish_guix_using_command archive' -a "--expressio= n=3D" -d 'build the package or derivation EXPR evaluates to' +complete -f -c guix -n '__fish_guix_using_command archive' -l source -d 'b= uild the packages\' source derivations' +complete -f -c guix -n '__fish_guix_using_command archive' -a "--system=3D= " -d 'attempt to build for SYSTEM--e.g., "i686-linux"' +complete -f -c guix -n '__fish_guix_using_command archive' -a "--target=3D= " -d 'cross-build for TRIPLET--e.g., "armel-linux-gnu"' +complete -f -c guix -n '__fish_guix_using_command archive' -a "--load-path= =3D" -d 'prepend DIR to the package module search path' +complete -f -c guix -n '__fish_guix_using_command archive' -l keep-failed = -d 'keep build tree of failed builds' +complete -f -c guix -n '__fish_guix_using_command archive' -l keep-going -= d 'keep going when some of the derivations fail' +complete -f -c guix -n '__fish_guix_using_command archive' -l dry-run -d '= do not build the derivations' +complete -f -c guix -n '__fish_guix_using_command archive' -l fallback -d = 'fall back to building when the substituter fails' +complete -f -c guix -n '__fish_guix_using_command archive' -l no-substitut= es -d 'build instead of resorting to pre-built substitutes' +complete -f -c guix -n '__fish_guix_using_command archive' -a "--substitut= e-urls=3D" -d 'fetch substitute from URLS if they are authorized' +complete -f -c guix -n '__fish_guix_using_command archive' -l no-grafts -d= 'do not graft packages' +complete -f -c guix -n '__fish_guix_using_command archive' -l no-build-hoo= k -d 'do not attempt to offload builds via the build hook' +complete -f -c guix -n '__fish_guix_using_command archive' -a "--max-silen= t-time=3D" -d 'mark the build as failed after SECONDS of silence' +complete -f -c guix -n '__fish_guix_using_command archive' -a "--timeout= =3D" -f -d 'mark the build as failed after SECONDS of activity' +complete -f -c guix -n '__fish_guix_using_command archive' -a "--verbosity= =3D" -d 'use the given verbosity LEVEL' +complete -f -c guix -n '__fish_guix_using_command archive' -a "--rounds=3D= " -d 'build N times in a row to detect non-determinism' +complete -f -c guix -n '__fish_guix_using_command archive' -a "--cores=3D"= -d 'allow the use of up to N CPU cores for the build' +complete -f -c guix -n '__fish_guix_using_command archive' -a "--max-jobs= =3D" -d 'allow at most N build jobs' + +#### pack +set -l remotecommands --load-path=3D --keep-failed --keep-going --dry-run = --fallback --no-substitutes --substitute-urls=3D --no-grafts --no-build-hoo= k --max-silent-time=3D --timeout=3D --verbosity=3D --rounds=3D --cores=3D -= -max-jobs=3D --with-source=3D --with-input=3D --with-graft=3D --format=3D -= -expression=3D --system=3D --target=3D --compression=3D --symlink=3D --loca= lstatedir --help --version +complete -f -c guix -n '__fish_guix_needs_command' -a pack -d 'Create a bu= ndle of PACKAGE.' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--load-path=3D= " -d 'prepend DIR to the package module search path' +complete -f -c guix -n '__fish_guix_using_command pack' -s L -d 'prepend D= IR to the package module search path' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--keep-failed"= -d 'keep build tree of failed builds' +complete -f -c guix -n '__fish_guix_using_command pack' -s K -d 'keep buil= d tree of failed builds' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--keep-going" = -d 'keep going when some of the derivations fail' +complete -f -c guix -n '__fish_guix_using_command pack' -s k -d 'keep goin= g when some of the derivations fail' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--dry-run" -d = 'do not build the derivations' +complete -f -c guix -n '__fish_guix_using_command pack' -s n -d 'do not bu= ild the derivations' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--fallback" -d= 'fall back to building when the substituter fails' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--no-substitut= es" -d 'build instead of resorting to pre-built substitutes' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--substitute-u= rls=3D" -d 'fetch substitute from URLS if they are authorized' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--no-grafts" -= d 'do not graft packages' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--no-build-hoo= k" -d 'do not attempt to offload builds via the build hook' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--max-silent-t= ime=3D" -d 'mark the build as failed after SECONDS of silence' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--timeout=3D" = -d 'mark the build as failed after SECONDS of activity' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--verbosity=3D= " -d 'use the given verbosity LEVEL' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--rounds=3D" -= d 'build N times in a row to detect non-determinism' +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' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--cores=3D" -d= 'allow the use of up to N CPU cores for the build' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--max-jobs=3D"= -d 'allow at most N build jobs' +complete -f -c guix -n '__fish_guix_using_command pack' -s M -d 'allow at = most N build jobs' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--with-source= =3D" -d 'use SOURCE when building the corresponding package' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--with-input= =3DPACKAGE=3DREPLACEMENT" -d 'replace dependency PACKAGE by REPLACEMENT' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--with-graft= =3DPACKAGE=3DREPLACEMENT" -d 'graft REPLACEMENT on packages that refer to P= ACKAGE' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--format=3D" -= d 'build a pack in the given FORMAT' +complete -f -c guix -n '__fish_guix_using_command pack' -s f -d 'build a p= ack in the given FORMAT' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--expression= =3D" -d 'consider the package EXPR evaluates to' +complete -f -c guix -n '__fish_guix_using_command pack' -s e -d 'consider = the package EXPR evaluates to' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--system=3D" -= d 'attempt to build for SYSTEM--e.g., "i686-linux"' +complete -f -c guix -n '__fish_guix_using_command pack' -s s -d 'attempt t= o build for SYSTEM--eg., "i686-linux"' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--target=3D" -= d 'cross-build for TRIPLET--e.g., "armel-linux-gnu"' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--compression= =3D" -d 'compress using TOOL--e.g., "lzip"' +complete -f -c guix -n '__fish_guix_using_command pack' -s C -d 'compress = using TOOL--e.g., "lzip"' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--symlink=3D" = -d 'create symlinks to the profile according to SPEC' +complete -f -c guix -n '__fish_guix_using_command pack' -s S -d 'create sy= mlinks to the profile according to SPEC' +complete -f -c guix -n '__fish_guix_using_command pack' -a "--localstatedi= r" -d 'include /var/guix in the resulting pack' + + +## weather +set -l remotecommands substitute-urls manifest system +complete -f -c guix -n '__fish_guix_needs_command' -a weather -d 'Report t= he availability of substitutes-' +complete -f -c guix -n '__fish_guix_using_command weather' -a "--substitut= e-urls=3D" -d 'check for available substitutes at URLS' +complete -f -c guix -n '__fish_guix_using_command weather' -s m -d 'look u= p substitutes for packages specified in MANIFEST' +complete -f -c guix -n '__fish_guix_using_command weather' -a "--manifest= =3D" -d 'look up substitutes for packages specified in MANIFEST' +complete -f -c guix -n '__fish_guix_using_command weather' -s s -d 'consid= er substitutes for SYSTEM--e.g., "i686-linux"' +complete -f -c guix -n '__fish_guix_using_command weather' -a "--system=3D= " -d 'consider substitutes for SYSTEM--e.g., "i686-linux"' --=20 2.15.1 --cuaxmz2uqtlgrsko Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0002-gnu-fish-guix-Remove-it.patch" Content-Transfer-Encoding: quoted-printable =46rom d43402a12ac7f6d438daf72036773e100897e5af Mon Sep 17 00:00:00 2001 =46rom: ng0 Date: Sun, 14 Jan 2018 17:25:31 +0000 Subject: [PATCH 2/2] gnu: fish-guix: Remove it. fish-guix has been merged into Guix in 'etc/completion/fish' * gnu/packages/shells.scm (fish-guix): Remove it. --- gnu/packages/shells.scm | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm index 022287dbf..e374c41b9 100644 --- a/gnu/packages/shells.scm +++ b/gnu/packages/shells.scm @@ -6,7 +6,7 @@ ;;; Copyright =C2=A9 2016, 2017 Tobias Geerinckx-Rice ;;; Copyright =C2=A9 2016 Stefan Reich=C3=B6r ;;; Copyright =C2=A9 2017 Ricardo Wurmus -;;; Copyright =C2=A9 2017 ng0 +;;; Copyright =C2=A9 2017, 2018 ng0 ;;; Copyright =C2=A9 2017 Leo Famulari ;;; Copyright =C2=A9 2017 Arun Isaac ;;; @@ -146,32 +146,6 @@ and syntax highlighting.") (home-page "https://fishshell.com/") (license gpl2))) =20 -(define-public fish-guix - (package - (name "fish-guix") - (version "0.1.2.1") - (source - (origin - (method url-fetch) - (uri (string-append "https://d.n0.is/releases/fish-guix/" - name "-" version ".tar.xz")) - (sha256 - (base32 - "0k71hcn7nr523w74jw2i68x52s9hv6vmasnvnn7yr3xxvzn4kqgf")))) - (build-system gnu-build-system) - (arguments - `(#:tests? #f ; No checks. - #:make-flags (list - (string-append "PREFIX=3D" %output)) - #:phases - (modify-phases %standard-phases - (delete 'configure)))) ; No configure script. - (home-page "https://n0.is/s/fish-guix/") - (synopsis "Fish completions for Guix") - (description - "Fish-guix provides completions for Guix for users of the fish shell.= ") - (license bsd-3))) - (define-public rc (package (name "rc") --=20 2.15.1 --cuaxmz2uqtlgrsko-- --dje6ynmsyu3yb6d2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAlpbmMEACgkQ4i+bv+40 hYjHeg//VAZEQwGQURvigzx2bp5+pp+3nRK6m8SEu6L7DYf94kodQFJaloEovVdy Qrt05lJ6dhYzRJOEHK9eoLkmBqvGJWGBqJOKjljmB13HroPTjfSOGObzjvEHuoo7 HizlkuEclcu+fHDgmFoRDzt8mPBEpL8SttSyPLZL3Rw2TnPz0zjFbasf+NKk0nTu +/QquYT25tV6juPWylofIT02PVYlB0ix67FBBT7qLySCrbNCkygul+8MgPuu8Xt5 kiQVFxTGv+T3zHJ5b41JpAABznydSIVJaauxgk6YqAgCJIvLCQwnn9ijqjRIpNBB IZOSpqv9F1It8NrR/BtoGppct+05HCJZIvLVu8dXvXkztCz8LdZAW25fNvA/gqGl AOfAoFMQ9m1/fkGwZCSmzt7DMW3QYADWQzY5jUnlwZrhlxXgtLRtRH9f0PihoeEj Dh6MXtY4MvknbiIFDgllEFFMCBFV0fF0vTe/f2C2O7v26HUAEZtqlv8XO4NJUiGJ wb4K1Uln9Z91fbP07m2AmfhxxQjCalWgKr87CAbelZ1+y7PtQbW/w69Lm3XBCli2 CewvvHje2Ij9LM+ygt3nKQ0EpeLQLwbD4eN/S6jjvTaiVJ+wbrVD46kdnUMSUl1q s5/TfEnIqOPEj69K2XKyh6Axbi+ARaJS6QVSAdeGyyj0Os7EG+4= =/Nvi -----END PGP SIGNATURE----- --dje6ynmsyu3yb6d2--