From 78f39bdfee511f4236339ecf2f2fabdfba944d99 Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Fri, 1 Jan 2021 23:09:18 -0800 Subject: 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 --- share/spack/spack-completion.bash | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'share') 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() { -- cgit v1.2.3-60-g2f50