summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorVanessasaurus <814322+vsoch@users.noreply.github.com>2021-05-29 00:32:57 -0600
committerGitHub <noreply@github.com>2021-05-28 23:32:57 -0700
commit6f534acbefa1ff1d0b389f72221a8dbdd87609b0 (patch)
tree7ebb7f195507e8088d9fd334395653ffca753bde /share
parentf6febd2ef5058a265cbc389c2d05aa43e9678d81 (diff)
downloadspack-6f534acbefa1ff1d0b389f72221a8dbdd87609b0.tar.gz
spack-6f534acbefa1ff1d0b389f72221a8dbdd87609b0.tar.bz2
spack-6f534acbefa1ff1d0b389f72221a8dbdd87609b0.tar.xz
spack-6f534acbefa1ff1d0b389f72221a8dbdd87609b0.zip
adding support for export of private gpg key (#22557)
This PR allows users to `--export`, `--export-secret`, or both to export GPG keys from Spack. The docs are updated that include a warning that this usually does not need to be done. This addresses an issue brought up in slack, and also represented in #14721. Signed-off-by: vsoch <vsoch@users.noreply.github.com> Co-authored-by: vsoch <vsoch@users.noreply.github.com>
Diffstat (limited to 'share')
-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 163a2ecf5f..6bf88fee60 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -1010,7 +1010,7 @@ _spack_gpg_sign() {
_spack_gpg_create() {
if $list_options
then
- SPACK_COMPREPLY="-h --help --comment --expires --export"
+ SPACK_COMPREPLY="-h --help --comment --expires --export --export-secret"
else
SPACK_COMPREPLY=""
fi
@@ -1027,7 +1027,7 @@ _spack_gpg_init() {
_spack_gpg_export() {
if $list_options
then
- SPACK_COMPREPLY="-h --help"
+ SPACK_COMPREPLY="-h --help --secret"
else
_keys
fi