diff options
author | Greg Becker <becker33@llnl.gov> | 2020-06-25 02:38:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-25 09:38:01 +0200 |
commit | b26e93af3d19e4492cf049bc7479eb85bc8f7da7 (patch) | |
tree | fcac021ae107218a1d5bdd0a842f0686d6e39942 /share | |
parent | 089a21dd1db017a1b20e661f46b85b63beb9ce8f (diff) | |
download | spack-b26e93af3d19e4492cf049bc7479eb85bc8f7da7.tar.gz spack-b26e93af3d19e4492cf049bc7479eb85bc8f7da7.tar.bz2 spack-b26e93af3d19e4492cf049bc7479eb85bc8f7da7.tar.xz spack-b26e93af3d19e4492cf049bc7479eb85bc8f7da7.zip |
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
Diffstat (limited to 'share')
-rwxr-xr-x | share/spack/spack-completion.bash | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash index e2db47ba30..ffd7596416 100755 --- a/share/spack/spack-completion.bash +++ b/share/spack/spack-completion.bash @@ -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 |