summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2019-09-02 10:18:14 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2019-09-02 19:24:48 -0700
commit1b877e8e0ff0a5457239272b757aadf961bfcc16 (patch)
treeb759b402d6655f82fb6b244157c301a22b49c394 /share
parent2dc746776079270e5c9b8f6c5f2f2e491db151d7 (diff)
downloadspack-1b877e8e0ff0a5457239272b757aadf961bfcc16.tar.gz
spack-1b877e8e0ff0a5457239272b757aadf961bfcc16.tar.bz2
spack-1b877e8e0ff0a5457239272b757aadf961bfcc16.tar.xz
spack-1b877e8e0ff0a5457239272b757aadf961bfcc16.zip
tests and completions for `spack find --json` and `spack find --format`
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/spack-completion.bash5
1 files changed, 3 insertions, 2 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index 1edc262d0a..45dae0e171 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -521,7 +521,8 @@ function _spack_fetch {
function _spack_find {
if $list_options
then
- compgen -W "-h --help -s --short -p --paths -d --deps -l --long
+ compgen -W "-h --help -s --short -d --deps -p --paths
+ --format --json --groups --no-groups -l --long
-L --very-long -t --tags -c --show-concretized
-f --show-flags --show-full-compiler -x --explicit
-X --implicit -u --unknown -m --missing -v --variants
@@ -1282,7 +1283,7 @@ function _all_resource_hashes {
}
function _installed_packages {
- spack --color=never find | grep -v "^--"
+ spack --color=never find --no-groups
}
function _installed_compilers {