summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2023-01-14 16:08:40 -0800
committerGitHub <noreply@github.com>2023-01-14 16:08:40 -0800
commitd4e714bb2efc3a5428cf533cd3df4a671a6d44b3 (patch)
tree396b16ce8be5269a29499375c05f81fe6818de20 /share
parentff38ff25cb3b4071ba7bb5699d857f8ae70c9cb5 (diff)
downloadspack-d4e714bb2efc3a5428cf533cd3df4a671a6d44b3.tar.gz
spack-d4e714bb2efc3a5428cf533cd3df4a671a6d44b3.tar.bz2
spack-d4e714bb2efc3a5428cf533cd3df4a671a6d44b3.tar.xz
spack-d4e714bb2efc3a5428cf533cd3df4a671a6d44b3.zip
spack list: add `--count` option (#34950)
Sometimes I just want to know how many packages of a certain type there are. - [x] add `--count` option to `spack list` that output the number of packages that *would* be listed. ```console > spack list --count 6864 > spack list --count py- 2040 > spack list --count r- 1162 ```
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/spack-completion.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index 83fb689028..8d1bd8ce98 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -1197,7 +1197,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 -v --virtuals -t --tag --count --update"
else
_all_packages
fi