summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorHarmen Stoppels <me@harmenstoppels.nl>2023-12-05 12:44:50 +0100
committerGitHub <noreply@github.com>2023-12-05 12:44:50 +0100
commit3cefd73fcc0647cda740e5953af709e82b4b5bd8 (patch)
tree33cab65ed82a536a6af1f1067920f2285fc7603b /share
parent3547bcb51714872e4fc735a657b38ecc6eeae30c (diff)
downloadspack-3cefd73fcc0647cda740e5953af709e82b4b5bd8.tar.gz
spack-3cefd73fcc0647cda740e5953af709e82b4b5bd8.tar.bz2
spack-3cefd73fcc0647cda740e5953af709e82b4b5bd8.tar.xz
spack-3cefd73fcc0647cda740e5953af709e82b4b5bd8.zip
spack buildcache check: use same interface as push (#41378)
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/spack-completion.bash7
-rwxr-xr-xshare/spack/spack-completion.fish1
2 files changed, 7 insertions, 1 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index a54f7db414..cebf865d9e 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -618,7 +618,12 @@ _spack_buildcache_preview() {
}
_spack_buildcache_check() {
- SPACK_COMPREPLY="-h --help -m --mirror-url -o --output-file --scope -s --spec --spec-file"
+ if $list_options
+ then
+ SPACK_COMPREPLY="-h --help -m --mirror-url -o --output-file --scope -s --spec --spec-file"
+ else
+ _all_packages
+ fi
}
_spack_buildcache_download() {
diff --git a/share/spack/spack-completion.fish b/share/spack/spack-completion.fish
index 1d32fc1d37..5d443c8b6d 100755
--- a/share/spack/spack-completion.fish
+++ b/share/spack/spack-completion.fish
@@ -797,6 +797,7 @@ complete -c spack -n '__fish_spack_using_command buildcache preview' -s h -l hel
# spack buildcache check
set -g __fish_spack_optspecs_spack_buildcache_check h/help m/mirror-url= o/output-file= scope= s/spec= spec-file=
+complete -c spack -n '__fish_spack_using_command_pos_remainder 0 buildcache check' -f -k -a '(__fish_spack_specs)'
complete -c spack -n '__fish_spack_using_command buildcache check' -s h -l help -f -a help
complete -c spack -n '__fish_spack_using_command buildcache check' -s h -l help -d 'show this help message and exit'
complete -c spack -n '__fish_spack_using_command buildcache check' -s m -l mirror-url -r -f -a mirror_url