Add spack config list command for tab completion (#14474)
* Add spack config list command for tab completion * Update tab completion scripts
This commit is contained in:

committed by
Peter Scheibel

parent
12a261523e
commit
dcd8d7a620
@@ -218,7 +218,7 @@ _keys() {
|
||||
_config_sections() {
|
||||
if [[ -z "${SPACK_CONFIG_SECTIONS:-}" ]]
|
||||
then
|
||||
SPACK_CONFIG_SECTIONS="compilers mirrors repos packages modules config upstreams"
|
||||
SPACK_CONFIG_SECTIONS="$(spack config list)"
|
||||
fi
|
||||
SPACK_COMPREPLY="$SPACK_CONFIG_SECTIONS"
|
||||
}
|
||||
|
@@ -218,7 +218,7 @@ _keys() {
|
||||
_config_sections() {
|
||||
if [[ -z "${SPACK_CONFIG_SECTIONS:-}" ]]
|
||||
then
|
||||
SPACK_CONFIG_SECTIONS="compilers mirrors repos packages modules config upstreams"
|
||||
SPACK_CONFIG_SECTIONS="$(spack config list)"
|
||||
fi
|
||||
SPACK_COMPREPLY="$SPACK_CONFIG_SECTIONS"
|
||||
}
|
||||
@@ -584,7 +584,7 @@ _spack_config() {
|
||||
then
|
||||
SPACK_COMPREPLY="-h --help --scope"
|
||||
else
|
||||
SPACK_COMPREPLY="get blame edit"
|
||||
SPACK_COMPREPLY="get blame edit list"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -615,6 +615,10 @@ _spack_config_edit() {
|
||||
fi
|
||||
}
|
||||
|
||||
_spack_config_list() {
|
||||
SPACK_COMPREPLY="-h --help"
|
||||
}
|
||||
|
||||
_spack_configure() {
|
||||
if $list_options
|
||||
then
|
||||
|
Reference in New Issue
Block a user