diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-07-19 17:54:46 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-07-19 17:54:46 +0300 |
commit | 8667152bc05967c2a9b19a80d809c81caec0a4df (patch) | |
tree | d94c019963b084a9c0d482859efe81828c8eb925 /bin | |
parent | 5b527aa3c5d9a425305fdef73bfb819a5c1ce81f (diff) | |
download | arching-kaos-tools-8667152bc05967c2a9b19a80d809c81caec0a4df.tar.gz arching-kaos-tools-8667152bc05967c2a9b19a80d809c81caec0a4df.tar.bz2 arching-kaos-tools-8667152bc05967c2a9b19a80d809c81caec0a4df.zip |
Expanded ak-gpg handler
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ak-gpg | 32 |
1 files changed, 30 insertions, 2 deletions
@@ -12,7 +12,27 @@ ## ## --get-key-fingerprint-from-ipfs Returns the fingerprint of a given key ## -## --list-keys Returns a list of known GPG keys +## -l, --list-keys Returns a list of known GPG keys +## +## -lp, --list-keys-plain Returns a list of known GPG keys as +## plain GPG output +## +## -ll, --list-keys-long Returns a list of known GPG keys with +## their 1st uid +## +## -ls, --list-secret-keys Returns a list of secret GPG keys +## +## -lsp, --list-secret-keys-plain Returns a list of secret GPG keys as +## plain GPG output +## +## -lsl, --list-secret-keys-long Returns a list of secret GPG keys with +## their 1st uid +## +## -c, --create-key <email> Creates a GPG key with a label <email> +## +## -s, --select-key Selects the GPG key you want to use +## +## -d, --delete-key Delete GPG keys from your keyring ## fullprogrampath="$(realpath $0)" PROGRAM=$(basename $0) @@ -33,7 +53,15 @@ if [ ! -z $1 ]; then --get-key-self-as-ipfs) _ak_gpg_key_self_get_fingerprint_from_config; exit;; --get-key-self-as-fingerprint) _ak_gpg_key_self_get_fingerprint; exit;; --get-key-fingerprint-from-ipfs) _ak_gpg_key_get_fingerprint_from_ipfs $1; exit;; - --list-keys) _ak_gpg_list_keys; exit;; + --list-keys | -l) _ak_gpg_list_keys; exit;; + --list-keys-long | -ll) _ak_gpg_list_keys_long; exit;; + --list-keys-plain | -lp) _ak_gpg_list_keys_plain; exit;; + --list-secret-keys | -ls) _ak_gpg_list_secret_keys; exit;; + --list-secret-keys-long | -lsl) _ak_gpg_list_secret_keys_long; exit;; + --list-secret-keys-plain | -lsp) _ak_gpg_list_secret_keys_plain; exit;; + --create-key | -c) _ak_gpg_create_key $2; exit;; + --select-key | -s) _ak_gpg_select_key; exit;; + --delete-key | -d) _ak_gpg_delete_key; exit;; * ) _ak_usage;; esac else _ak_usage |