Autocomplete spack providers (#7783)
This commit is contained in:
parent
ed4d0c5a87
commit
ef37cdb380
@ -754,8 +754,7 @@ function _spack_providers {
|
||||
then
|
||||
compgen -W "-h --help" -- "$cur"
|
||||
else
|
||||
compgen -W "awk blas D daal elf gl golang ipp java lapack mkl mpe mpi
|
||||
opencl openfoam pil pkgconfig scalapack szip tbb" -- "$cur"
|
||||
compgen -W "$(_providers)" -- "$cur"
|
||||
fi
|
||||
}
|
||||
|
||||
@ -1025,6 +1024,10 @@ function _installed_compilers {
|
||||
spack compilers | egrep -v "^(-|=)"
|
||||
}
|
||||
|
||||
function _providers {
|
||||
spack providers
|
||||
}
|
||||
|
||||
function _mirrors {
|
||||
spack mirror list | awk '{print $1}'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user