diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2021-01-01 23:09:18 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2021-01-02 12:12:00 -0800 |
commit | 78f39bdfee511f4236339ecf2f2fabdfba944d99 (patch) | |
tree | 875c25354c6dc4223c9eb797326d125fb70f42e3 /share | |
parent | 4d94c4c4600f42a7a3bb3d06ec879140bc259304 (diff) | |
download | spack-78f39bdfee511f4236339ecf2f2fabdfba944d99.tar.gz spack-78f39bdfee511f4236339ecf2f2fabdfba944d99.tar.bz2 spack-78f39bdfee511f4236339ecf2f2fabdfba944d99.tar.xz spack-78f39bdfee511f4236339ecf2f2fabdfba944d99.zip |
commands: add `spack license update-copyright-year`
This adds a new subcommand to `spack license` that automatically updates
the copyright year in files that should have a license header.
- [x] add `spack license update-copyright-year` command
- [x] add test
Diffstat (limited to 'share')
-rwxr-xr-x | share/spack/spack-completion.bash | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash index 36880dfdef..9e80306bd2 100755 --- a/share/spack/spack-completion.bash +++ b/share/spack/spack-completion.bash @@ -1042,9 +1042,9 @@ _spack_install() { _spack_license() { if $list_options then - SPACK_COMPREPLY="-h --help" + SPACK_COMPREPLY="-h --help --root" else - SPACK_COMPREPLY="list-files verify" + SPACK_COMPREPLY="list-files verify update-copyright-year" fi } @@ -1053,7 +1053,11 @@ _spack_license_list_files() { } _spack_license_verify() { - SPACK_COMPREPLY="-h --help --root" + SPACK_COMPREPLY="-h --help" +} + +_spack_license_update_copyright_year() { + SPACK_COMPREPLY="-h --help" } _spack_list() { |