spack config: new subcommands add/remove (#13920)

spack config add <value>: add nested value value to the configuration scope specified
spack config remove/rm: remove specified configuration from the relevant scope
This commit is contained in:
Greg Becker
2020-06-25 02:38:01 -05:00
committed by GitHub
parent 089a21dd1d
commit b26e93af3d
13 changed files with 746 additions and 103 deletions

View File

@@ -579,7 +579,7 @@ _spack_config() {
then
SPACK_COMPREPLY="-h --help --scope"
else
SPACK_COMPREPLY="get blame edit list"
SPACK_COMPREPLY="get blame edit list add remove rm"
fi
}
@@ -614,6 +614,33 @@ _spack_config_list() {
SPACK_COMPREPLY="-h --help"
}
_spack_config_add() {
if $list_options
then
SPACK_COMPREPLY="-h --help -f --file"
else
SPACK_COMPREPLY=""
fi
}
_spack_config_remove() {
if $list_options
then
SPACK_COMPREPLY="-h --help"
else
SPACK_COMPREPLY=""
fi
}
_spack_config_rm() {
if $list_options
then
SPACK_COMPREPLY="-h --help"
else
SPACK_COMPREPLY=""
fi
}
_spack_configure() {
if $list_options
then