summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorGreg Becker <becker33@llnl.gov>2020-06-03 09:45:13 -0700
committerGitHub <noreply@github.com>2020-06-03 09:45:13 -0700
commit3347ef2de4e08374750eb68f750800c1854d595f (patch)
treec98cf95a8322592606adc059493547ac2dcfceb9 /share
parent7aa9cb0f7a40639852dedb00cc2ecff847a3413b (diff)
downloadspack-3347ef2de4e08374750eb68f750800c1854d595f.tar.gz
spack-3347ef2de4e08374750eb68f750800c1854d595f.tar.bz2
spack-3347ef2de4e08374750eb68f750800c1854d595f.tar.xz
spack-3347ef2de4e08374750eb68f750800c1854d595f.zip
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
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/spack-completion.bash20
1 files changed, 19 insertions, 1 deletions
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