summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2019-07-24 00:17:06 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2019-07-24 14:10:08 -0700
commitb0abbfecb8595c8901855e679be0bbea64089fe8 (patch)
tree6331725ece5e582b58bf4bed2168d894ae3eb6ee /share
parent7411347a2958167f61682b24c5a314e4645ac821 (diff)
downloadspack-b0abbfecb8595c8901855e679be0bbea64089fe8.tar.gz
spack-b0abbfecb8595c8901855e679be0bbea64089fe8.tar.bz2
spack-b0abbfecb8595c8901855e679be0bbea64089fe8.tar.xz
spack-b0abbfecb8595c8901855e679be0bbea64089fe8.zip
new command: `spack maintainers` queries package maintainers
- We don't currently make enough use of the maintainers field on packages, though we could use it to assign reviews. - add a command that allows maintainers to be queried - can ask who is maintaining a package or packages - can ask what packages users are maintaining - can list all maintained or unmaintained packages - add tests for the command
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/spack-completion.bash10
1 files changed, 10 insertions, 0 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index 362fe1e0bf..1edc262d0a 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -700,6 +700,16 @@ function _spack_log_parse {
fi
}
+function _spack_maintainers {
+ if $list_options
+ then
+ compgen -W "-h --help -a --all --maintained --unmaintained
+ --by-user" -- "$cur"
+ else
+ compgen -W "$(_all_packages)" -- "$cur"
+ fi
+}
+
function _spack_mirror {
if $list_options
then