diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2022-08-05 12:36:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-05 12:36:33 +0200 |
commit | 5bf6b7e6a5f52429011ca16e0275848c27df4c9b (patch) | |
tree | f2187043c27979dbc3c8c4c009e569aa01691575 /etc | |
parent | 901e6cb5e17d0a2df88554c454d5ec787828e37c (diff) | |
download | spack-5bf6b7e6a5f52429011ca16e0275848c27df4c9b.tar.gz spack-5bf6b7e6a5f52429011ca16e0275848c27df4c9b.tar.bz2 spack-5bf6b7e6a5f52429011ca16e0275848c27df4c9b.tar.xz spack-5bf6b7e6a5f52429011ca16e0275848c27df4c9b.zip |
Refactor `cmd/install.py` for better readability (#31936)
* Extracted two functions in cmd/install.py
* Extracted a function to perform installation from the active environment
* Rename a few functions, remove args from their arguments
* Rework conditional in install_from_active_environment to reduce nesting in the function
* Extract functions to parsespecs from cli and files
* Extract functions to getuser confirmation for overwrite
* Extract functions to install specs inside and outside environments
* Rename a couple of functions
* Fix outdated comment
* Add missing imports
* Split conditional to dedent one level
* Invert check and exit early to dedent one level when requiring user confirmation
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions