summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/spack-completion.bash44
1 files changed, 44 insertions, 0 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index 46070d68cc..408aaf61ac 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -152,6 +152,50 @@ function _spack_build {
fi
}
+function _spack_buildcache {
+ if $list_options
+ then
+ compgen -W "-h --help" -- "$cur"
+ else
+ compgen -W "create install keys list" -- "$cur"
+ fi
+}
+
+function _spack_buildcache_create {
+ if $list_options
+ then
+ compgen -W "-h --help -r --rel -f --force -y --yes-to-all -k --key
+ -d --directory" -- "$cur"
+ else
+ compgen -W "$(_all_packages)" -- "$cur"
+ fi
+}
+
+function _spack_buildcache_install {
+ if $list_options
+ then
+ compgen -W "-h --help -f --force -y --yes-to-all" -- "$cur"
+ else
+ compgen -W "$(_all_packages)" -- "$cur"
+ fi
+}
+
+function _spack_buildcache_keys {
+ if $list_options
+ then
+ compgen -W "-h --help -i --install -y --yes-to-all" -- "$cur"
+ fi
+}
+
+function _spack_buildcache_list {
+ if $list_options
+ then
+ compgen -W "-h --help" -- "$cur"
+ else
+ compgen -W "$(_all_packages)" -- "$cur"
+ fi
+}
+
function _spack_cd {
if $list_options
then