summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorScott Wittenburg <scott.wittenburg@kitware.com>2021-08-19 12:15:40 -0600
committerGitHub <noreply@github.com>2021-08-19 12:15:40 -0600
commit350372e3bf9c1ac5de2e7e74a3ccd8a46f7e1d5d (patch)
treee1795834d6372fc94326ac783874ce8bbcf8dc91 /share
parentcd91abcf880e61c63c10b0f51be67f482b2149fc (diff)
downloadspack-350372e3bf9c1ac5de2e7e74a3ccd8a46f7e1d5d.tar.gz
spack-350372e3bf9c1ac5de2e7e74a3ccd8a46f7e1d5d.tar.bz2
spack-350372e3bf9c1ac5de2e7e74a3ccd8a46f7e1d5d.tar.xz
spack-350372e3bf9c1ac5de2e7e74a3ccd8a46f7e1d5d.zip
buildcache: Add environment-aware buildcache sync command (#25470)
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/spack-completion.bash6
1 files changed, 5 insertions, 1 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index 1281ca7349..ef15f38c6b 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -482,7 +482,7 @@ _spack_buildcache() {
then
SPACK_COMPREPLY="-h --help"
else
- SPACK_COMPREPLY="create install list keys preview check download get-buildcache-name save-yaml copy update-index"
+ SPACK_COMPREPLY="create install list keys preview check download get-buildcache-name save-yaml copy sync update-index"
fi
}
@@ -546,6 +546,10 @@ _spack_buildcache_copy() {
SPACK_COMPREPLY="-h --help --base-dir --spec-yaml --destination-url"
}
+_spack_buildcache_sync() {
+ SPACK_COMPREPLY="-h --help --src-directory --src-mirror-name --src-mirror-url --dest-directory --dest-mirror-name --dest-mirror-url"
+}
+
_spack_buildcache_update_index() {
SPACK_COMPREPLY="-h --help -d --mirror-url -k --keys"
}