Autocomplete spack providers (#7783)

This commit is contained in:
Adam J. Stewart 2018-04-17 09:33:04 -05:00 committed by GitHub
parent ed4d0c5a87
commit ef37cdb380
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}'
}