Merged 'purge' command with 'clean' and deleted 'purge' (#4970)

* Merged 'purge' command with 'clean'. Deleted 'purge'. fixes #2942

'spack purge' has been merged with 'spack clean'. Documentation has been
updated accordingly. The 'clean' and 'purge' behavior are not mutually
exclusive, and they log brief information to tty while they go.

* Fixed a wrong reference to spack clean in the docs

* Added tests for 'spack clean'. Updated bash completion.
This commit is contained in:
Massimiliano Culpo
2017-08-09 19:02:38 +02:00
committed by becker33
parent 9e8cce41e3
commit faeb1b77b2
7 changed files with 131 additions and 95 deletions

View File

@@ -175,7 +175,8 @@ function _spack_checksum {
function _spack_clean {
if $list_options
then
compgen -W "-h --help" -- "$cur"
compgen -W "-h --help -s --stage -d --downloads
-m --misc-cache -a --all" -- "$cur"
else
compgen -W "$(_all_packages)" -- "$cur"
fi
@@ -598,11 +599,6 @@ function _spack_providers {
fi
}
function _spack_purge {
compgen -W "-h --help -s --stage -d --downloads
-m --misc-cache -a --all" -- "$cur"
}
function _spack_python {
if $list_options
then