summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorTamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>2021-11-01 13:40:29 -0700
committerGitHub <noreply@github.com>2021-11-01 20:40:29 +0000
commitd4cecd9ab2bcf71572d6706ce00ec9d855e473ee (patch)
treec2d3eae392fa37821865425d58cecc5ca3f01c87 /share
parentb56f464c29c3e316c3afbbde52bf2597ad5351f1 (diff)
downloadspack-d4cecd9ab2bcf71572d6706ce00ec9d855e473ee.tar.gz
spack-d4cecd9ab2bcf71572d6706ce00ec9d855e473ee.tar.bz2
spack-d4cecd9ab2bcf71572d6706ce00ec9d855e473ee.tar.xz
spack-d4cecd9ab2bcf71572d6706ce00ec9d855e473ee.zip
feature: add "spack tags" command (#26136)
This PR adds a "spack tags" command to output package tags or (available) packages with those tags. It also ensures each package is listed in the tag cache ONLY ONCE per tag.
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/spack-completion.bash13
1 files changed, 11 insertions, 2 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index 1c971cb6c4..c34c954e5e 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -337,7 +337,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 bootstrap build-env buildcache cd checksum ci clean clone commands compiler compilers concretize config containerize create deactivate debug dependencies dependents deprecate dev-build develop diff 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 diff 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 tags test test-env tutorial undevelop uninstall unit-test unload url verify versions view"
fi
}
@@ -1206,7 +1206,7 @@ _spack_license_update_copyright_year() {
_spack_list() {
if $list_options
then
- SPACK_COMPREPLY="-h --help -d --search-description --format --update -v --virtuals -t --tag"
+ SPACK_COMPREPLY="-h --help -d --search-description --format --update -v --virtuals"
else
_all_packages
fi
@@ -1668,6 +1668,15 @@ _spack_style() {
fi
}
+_spack_tags() {
+ if $list_options
+ then
+ SPACK_COMPREPLY="-h --help -i --installed -a --all"
+ else
+ SPACK_COMPREPLY=""
+ fi
+}
+
_spack_test() {
if $list_options
then