diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2021-07-13 01:00:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-12 19:00:37 -0400 |
commit | 3228c35df69519632699004dc1e0cafd37d216ac (patch) | |
tree | c9fe54ed180de4691bbb2bf674ef16c4e28864ce /share | |
parent | 9fb1c3e1430c5225403a36577a41cb7e168c49ef (diff) | |
download | spack-3228c35df69519632699004dc1e0cafd37d216ac.tar.gz spack-3228c35df69519632699004dc1e0cafd37d216ac.tar.bz2 spack-3228c35df69519632699004dc1e0cafd37d216ac.tar.xz spack-3228c35df69519632699004dc1e0cafd37d216ac.zip |
Enable/disable bootstrapping and customize store location (#23677)
* Permit to enable/disable bootstrapping and customize store location
This PR adds configuration handles to allow enabling
and disabling bootstrapping, and to customize the store
location.
* Move bootstrap related configuration into its own YAML file
* Add a bootstrap command to manage configuration
Diffstat (limited to 'share')
-rwxr-xr-x | share/spack/spack-completion.bash | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash index cd5a01c42d..44cc7945fd 100755 --- a/share/spack/spack-completion.bash +++ b/share/spack/spack-completion.bash @@ -333,7 +333,7 @@ _spack() { then SPACK_COMPREPLY="-h --help -H --all-help --color -c --config -C --config-scope -d --debug --timestamp --pdb -e --env -D --env-dir -E --no-env --use-env-repo -k --insecure -l --enable-locks -L --disable-locks -m --mock -p --profile --sorted-profile --lines -v --verbose --stacktrace -V --version --print-shell-vars" else - SPACK_COMPREPLY="activate add analyze arch audit blame build-env buildcache cd checksum ci clean clone commands compiler compilers concretize config containerize create deactivate debug dependencies dependents deprecate dev-build develop docs edit env extensions external fetch find flake8 gc gpg graph help info install license list load location log-parse maintainers mark mirror module monitor patch pkg providers pydoc python reindex remove rm repo resource restage solve spec stage style test test-env tutorial undevelop uninstall unit-test unload url verify versions view" + SPACK_COMPREPLY="activate add analyze arch audit blame bootstrap build-env buildcache cd checksum ci clean clone commands compiler compilers concretize config containerize create deactivate debug dependencies dependents deprecate dev-build develop docs edit env extensions external fetch find flake8 gc gpg graph help info install license list load location log-parse maintainers mark mirror module monitor patch pkg providers pydoc python reindex remove rm repo resource restage solve spec stage style test test-env tutorial undevelop uninstall unit-test unload url verify versions view" fi } @@ -416,6 +416,36 @@ _spack_blame() { fi } +_spack_bootstrap() { + if $list_options + then + SPACK_COMPREPLY="-h --help" + else + SPACK_COMPREPLY="enable disable reset root" + fi +} + +_spack_bootstrap_enable() { + SPACK_COMPREPLY="-h --help --scope" +} + +_spack_bootstrap_disable() { + SPACK_COMPREPLY="-h --help --scope" +} + +_spack_bootstrap_reset() { + SPACK_COMPREPLY="-h --help -y --yes-to-all" +} + +_spack_bootstrap_root() { + if $list_options + then + SPACK_COMPREPLY="-h --help --scope" + else + SPACK_COMPREPLY="" + fi +} + _spack_build_env() { if $list_options then |