cmd/checksum: allow adding new versions to package (#24532)

This adds super-lazy maintainer mode to `spack checksum`: Instead of
only printing the new checksums to the terminal, `-a` and
`--add-to-package` will add the new checksums to the `package.py` file
and open it in the editor afterwards for final checks.
This commit is contained in:
Michael Kuhn
2022-11-23 01:30:49 +01:00
committed by GitHub
parent c5883fffd7
commit 0fd3c9f451
4 changed files with 99 additions and 9 deletions

View File

@@ -580,7 +580,7 @@ _spack_change() {
_spack_checksum() {
if $list_options
then
SPACK_COMPREPLY="-h --help --keep-stage -b --batch -l --latest -p --preferred"
SPACK_COMPREPLY="-h --help --keep-stage -b --batch -l --latest -p --preferred -a --add-to-package"
else
_all_packages
fi