summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2020-11-09 03:47:08 -0800
committerGitHub <noreply@github.com>2020-11-09 12:47:08 +0100
commit4092c90b57a4698c5833b0a0049b28307edfea55 (patch)
treee744ea62a7a423b10b2d0cccdfca7d314795955b /share
parentac8a07ef4a428612cd6e95a023eb8f6935f03a3d (diff)
downloadspack-4092c90b57a4698c5833b0a0049b28307edfea55.tar.gz
spack-4092c90b57a4698c5833b0a0049b28307edfea55.tar.bz2
spack-4092c90b57a4698c5833b0a0049b28307edfea55.tar.xz
spack-4092c90b57a4698c5833b0a0049b28307edfea55.zip
commands: add `spack tutorial` command (#19808)
Added a command to set up Spack for our tutorial at https://spack-tutorial.readthedocs.io. The command does some common operations we need first-time users to do. Specifically: - checks out a particular branch of Spack - deletes spurious configuration in `~/.spack` that might be left over from prior parts of the tutorial - adds a mirror and trusts its public key
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/spack-completion.bash6
1 files changed, 5 insertions, 1 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index 3933621e84..2a11fac65c 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -320,7 +320,7 @@ _spack() {
then
SPACK_COMPREPLY="-h --help -H --all-help --color -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 arch 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 mirror module patch pkg providers pydoc python reindex remove rm repo resource restage setup spec stage test undevelop uninstall unload url verify versions view"
+ SPACK_COMPREPLY="activate add arch 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 mirror module patch pkg providers pydoc python reindex remove rm repo resource restage setup spec stage test tutorial undevelop uninstall unload url verify versions view"
fi
}
@@ -1491,6 +1491,10 @@ _spack_test() {
fi
}
+_spack_tutorial() {
+ SPACK_COMPREPLY="-h --help -y --yes-to-all"
+}
+
_spack_undevelop() {
if $list_options
then