From 3347ef2de4e08374750eb68f750800c1854d595f Mon Sep 17 00:00:00 2001 From: Greg Becker Date: Wed, 3 Jun 2020 09:45:13 -0700 Subject: Feature: add option to create view by copying/relocating files (#16480) * add subcommand `spack view copy/relocate` * update bash completions * add copy/relocate commands to view tests * allow copied views to be removed --- share/spack/spack-completion.bash | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'share') diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash index 49518de059..6801862bee 100755 --- a/share/spack/spack-completion.bash +++ b/share/spack/spack-completion.bash @@ -1521,7 +1521,7 @@ _spack_view() { then SPACK_COMPREPLY="-h --help -v --verbose -e --exclude -d --dependencies" else - SPACK_COMPREPLY="symlink add soft hardlink hard remove rm statlink status check" + SPACK_COMPREPLY="symlink add soft hardlink hard copy relocate remove rm statlink status check" fi } @@ -1570,6 +1570,24 @@ _spack_view_hard() { fi } +_spack_view_copy() { + if $list_options + then + SPACK_COMPREPLY="-h --help --projection-file -i --ignore-conflicts" + else + _all_packages + fi +} + +_spack_view_relocate() { + if $list_options + then + SPACK_COMPREPLY="-h --help --projection-file -i --ignore-conflicts" + else + _all_packages + fi +} + _spack_view_remove() { if $list_options then -- cgit v1.2.3-60-g2f50