completion: add bash completion for spack spec --json (#13433)

This commit is contained in:
Todd Gamblin 2019-10-25 11:02:52 -07:00 committed by GitHub
parent ab55890ba8
commit e0b94dba14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1051,7 +1051,8 @@ function _spack_spec {
if $list_options
then
compgen -W "-h --help -l --long -L --very-long -I --install-status
-y --yaml -c --cover -N --namespaces -t --types" -- "$cur"
-j --json -y --yaml -c --cover -N --namespaces
-t --types" -- "$cur"
else
compgen -W "$(_all_packages)" -- "$cur"
fi