diff options
Diffstat (limited to 'bin/ak-gpg')
-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 |