summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2017-08-16 15:58:09 -0500
committerscheibelp <scheibel1@llnl.gov>2017-08-16 13:58:09 -0700
commitaf02774b3ef1ed2cce63a7fba12877744c911371 (patch)
tree3dc0dc16a48c6e4474c164cb71f33e9813012434 /share
parentdc3526c7f1a42b8ff26504fd9a3d36756b82c757 (diff)
downloadspack-af02774b3ef1ed2cce63a7fba12877744c911371.tar.gz
spack-af02774b3ef1ed2cce63a7fba12877744c911371.tar.bz2
spack-af02774b3ef1ed2cce63a7fba12877744c911371.tar.xz
spack-af02774b3ef1ed2cce63a7fba12877744c911371.zip
Add tab completion & update docs for buildcache
This adds tab completion and fixes some formatting issues in the documentation for the "spack buildcache" command.
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