Add tab completion & update docs for buildcache

This adds tab completion and fixes some formatting issues in the
documentation for the "spack buildcache" command.
This commit is contained in:
Adam J. Stewart
2017-08-16 15:58:09 -05:00
committed by scheibelp
parent dc3526c7f1
commit af02774b3e
3 changed files with 131 additions and 63 deletions

View File

@@ -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