buildcache: Add environment-aware buildcache sync command (#25470)

This commit is contained in:
Scott Wittenburg
2021-08-19 12:15:40 -06:00
committed by GitHub
parent cd91abcf88
commit 350372e3bf
3 changed files with 233 additions and 1 deletions

View File

@@ -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"
}