summaryrefslogtreecommitdiff
path: root/share/spack/spack-completion.bash
diff options
context:
space:
mode:
authorJoseph Snyder <joe.snyder@kitware.com>2021-11-19 15:28:34 -0500
committerGitHub <noreply@github.com>2021-11-19 15:28:34 -0500
commitd7596125231e800ca41c60e379be2b8abb47d20d (patch)
treee0bf95aa25e2b52e78e125e86890cba269a8fab9 /share/spack/spack-completion.bash
parenta5c50220dbbe82c1c0e3ef98f6ba0333d0503f42 (diff)
downloadspack-d7596125231e800ca41c60e379be2b8abb47d20d.tar.gz
spack-d7596125231e800ca41c60e379be2b8abb47d20d.tar.bz2
spack-d7596125231e800ca41c60e379be2b8abb47d20d.tar.xz
spack-d7596125231e800ca41c60e379be2b8abb47d20d.zip
Add connection specification to mirror creation (#24244)
* Add connection specification to mirror creation This allows each mirror to contain information about the credentials used to access it. Update command and tests based on comments Switch to only "long form" flags for the s3 connection information. Use the "any" function instead of checking for an empty list when looking for s3 connection information. Split test to use the access token separately from the access id and key. Use long flag form in test. Add endpoint_url to available S3 options. Extend the special parameters for an S3 mirror to accept the endpoint_url parameter. Add a test. * Add connection information per URL not per mirror Expand the mirror-based connection information to be per-URL. This will allow a user to specify different S3 connection information for both the fetch and the push URLs. Add a parameter for "profile", another way of storing the id/secret pair. * Switch from "access_profile" to "profile"
Diffstat (limited to 'share/spack/spack-completion.bash')
-rwxr-xr-xshare/spack/spack-completion.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index 2d1466ed50..b0d9d70f3f 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -1277,7 +1277,7 @@ _spack_mirror_destroy() {
_spack_mirror_add() {
if $list_options
then
- SPACK_COMPREPLY="-h --help --scope"
+ SPACK_COMPREPLY="-h --help --scope --s3-access-key-id --s3-access-key-secret --s3-access-token --s3-profile --s3-endpoint-url"
else
_mirrors
fi
@@ -1304,7 +1304,7 @@ _spack_mirror_rm() {
_spack_mirror_set_url() {
if $list_options
then
- SPACK_COMPREPLY="-h --help --push --scope"
+ SPACK_COMPREPLY="-h --help --push --scope --s3-access-key-id --s3-access-key-secret --s3-access-token --s3-profile --s3-endpoint-url"
else
_mirrors
fi