diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2018-07-20 10:30:36 +0200 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2018-07-24 11:27:17 -0700 |
commit | 35cef169740d8eb87a1cc76fcde85d207935d91a (patch) | |
tree | 6925bf9fc43c38acd5d5c14ea57ac72a8a2a8973 /share | |
parent | 7cbe1aedb7c0ecc32d2cee3e965ec71570ee09d9 (diff) | |
download | spack-35cef169740d8eb87a1cc76fcde85d207935d91a.tar.gz spack-35cef169740d8eb87a1cc76fcde85d207935d91a.tar.bz2 spack-35cef169740d8eb87a1cc76fcde85d207935d91a.tar.xz spack-35cef169740d8eb87a1cc76fcde85d207935d91a.zip |
Grouped all the module commands under `spack module`
As requested in the review all the commands meant to manage module
files have been grouped under the `spack module` command.
Unit tests have been refactored to match the new command structure.
Diffstat (limited to 'share')
-rwxr-xr-x | share/spack/setup-env.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/share/spack/setup-env.sh b/share/spack/setup-env.sh index 6e5ab2b897..a0321c9223 100755 --- a/share/spack/setup-env.sh +++ b/share/spack/setup-env.sh @@ -121,25 +121,25 @@ function spack { # If spack module command comes back with an error, do nothing. case $_sp_subcommand in "use") - if _sp_full_spec=$(command spack $_sp_flags dotkit find $_sp_subcommand_args "${_sp_spec[@]}"); then + if _sp_full_spec=$(command spack $_sp_flags module dotkit find $_sp_subcommand_args "${_sp_spec[@]}"); then use $_sp_module_args $_sp_full_spec else $(exit 1) fi ;; "unuse") - if _sp_full_spec=$(command spack $_sp_flags dotkit find $_sp_subcommand_args "${_sp_spec[@]}"); then + if _sp_full_spec=$(command spack $_sp_flags module dotkit find $_sp_subcommand_args "${_sp_spec[@]}"); then unuse $_sp_module_args $_sp_full_spec else $(exit 1) fi ;; "load") - if _sp_full_spec=$(command spack $_sp_flags tcl find $_sp_subcommand_args "${_sp_spec[@]}"); then + if _sp_full_spec=$(command spack $_sp_flags module tcl find $_sp_subcommand_args "${_sp_spec[@]}"); then module load $_sp_module_args $_sp_full_spec else $(exit 1) fi ;; "unload") - if _sp_full_spec=$(command spack $_sp_flags tcl find $_sp_subcommand_args "${_sp_spec[@]}"); then + if _sp_full_spec=$(command spack $_sp_flags module tcl find $_sp_subcommand_args "${_sp_spec[@]}"); then module unload $_sp_module_args $_sp_full_spec else $(exit 1) |