Add --exclude option to 'spack external find' (#35013)

* Add --exclude option to 'spack external find' to ignore user-specified external packages
* Update bash completion arg order for external find

Co-authored-by: Todd Gamblin <tgamblin@llnl.gov>
This commit is contained in:
Alex Richert
2023-01-21 15:43:20 -08:00
committed by GitHub
parent da1165ffa3
commit ce8727cece
3 changed files with 25 additions and 1 deletions

View File

@@ -1031,7 +1031,7 @@ _spack_external() {
_spack_external_find() {
if $list_options
then
SPACK_COMPREPLY="-h --help --not-buildable -p --path --scope --all -t --tag"
SPACK_COMPREPLY="-h --help --not-buildable --exclude -p --path --scope --all -t --tag"
else
_all_packages
fi