diff options
Diffstat (limited to 'share')
-rwxr-xr-x | share/spack/spack-completion.bash | 2 | ||||
-rwxr-xr-x | share/spack/spack-completion.fish | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash index 76f046eaae..bc1998c465 100755 --- a/share/spack/spack-completion.bash +++ b/share/spack/spack-completion.bash @@ -1177,7 +1177,7 @@ _spack_find() { } _spack_gc() { - SPACK_COMPREPLY="-h --help -y --yes-to-all" + SPACK_COMPREPLY="-h --help -E --except-any-environment -e --except-environment -b --keep-build-dependencies -y --yes-to-all" } _spack_gpg() { diff --git a/share/spack/spack-completion.fish b/share/spack/spack-completion.fish index 7f4446706a..2b3edaa5a4 100755 --- a/share/spack/spack-completion.fish +++ b/share/spack/spack-completion.fish @@ -1747,9 +1747,15 @@ complete -c spack -n '__fish_spack_using_command find' -l end-date -r -f -a end_ complete -c spack -n '__fish_spack_using_command find' -l end-date -r -d 'latest date of installation [YYYY-MM-DD]' # spack gc -set -g __fish_spack_optspecs_spack_gc h/help y/yes-to-all +set -g __fish_spack_optspecs_spack_gc h/help E/except-any-environment e/except-environment= b/keep-build-dependencies y/yes-to-all complete -c spack -n '__fish_spack_using_command gc' -s h -l help -f -a help complete -c spack -n '__fish_spack_using_command gc' -s h -l help -d 'show this help message and exit' +complete -c spack -n '__fish_spack_using_command gc' -s E -l except-any-environment -f -a except_any_environment +complete -c spack -n '__fish_spack_using_command gc' -s E -l except-any-environment -d 'remove everything unless needed by an environment' +complete -c spack -n '__fish_spack_using_command gc' -s e -l except-environment -r -f -a except_environment +complete -c spack -n '__fish_spack_using_command gc' -s e -l except-environment -r -d 'remove everything unless needed by specified environment' +complete -c spack -n '__fish_spack_using_command gc' -s b -l keep-build-dependencies -f -a keep_build_dependencies +complete -c spack -n '__fish_spack_using_command gc' -s b -l keep-build-dependencies -d 'do not remove installed build-only dependencies of roots' complete -c spack -n '__fish_spack_using_command gc' -s y -l yes-to-all -f -a yes_to_all complete -c spack -n '__fish_spack_using_command gc' -s y -l yes-to-all -d 'assume "yes" is the answer to every confirmation request' |