aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-gpg
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-07-23 18:27:15 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-07-23 18:27:15 +0300
commitb165eece8b85b2532d53fed27fb6ca2573a79e70 (patch)
treefa3c7d92d88ccf81ee6f437a5e3ec8d29ef63233 /bin/ak-gpg
parent47f8aaf1a7ef90ba597e681792e95b667a7da111 (diff)
downloadarching-kaos-tools-b165eece8b85b2532d53fed27fb6ca2573a79e70.tar.gz
arching-kaos-tools-b165eece8b85b2532d53fed27fb6ca2573a79e70.tar.bz2
arching-kaos-tools-b165eece8b85b2532d53fed27fb6ca2573a79e70.zip
ak-gpg: new --delete-secret-key flag
Diffstat (limited to 'bin/ak-gpg')
-rwxr-xr-xbin/ak-gpg4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/ak-gpg b/bin/ak-gpg
index fa48a18..3ab0045 100755
--- a/bin/ak-gpg
+++ b/bin/ak-gpg
@@ -36,6 +36,9 @@
##
## -d, --delete-key Delete GPG keys from your keyring
##
+## -ds, --delete-secret-key <fingerprint>
+## Delete GPG keys from your keyring
+##
fullprogrampath="$(realpath $0)"
PROGRAM=$(basename $0)
descriptionString="GPG cli tool"
@@ -65,6 +68,7 @@ if [ ! -z $1 ]; then
--create-key | -c) shift; _ak_gpg_create_key $1; exit;;
--select-key | -s) _ak_gpg_select_key; exit;;
--delete-key | -d) _ak_gpg_delete_key; exit;;
+ --delete-secret-key | -ds) shift; _ak_gpg_delete_secret_key $1; exit;;
* ) _ak_usage;;
esac
else _ak_usage