aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2025-10-19 04:51:22 +0300
committerkaotisk <kaotisk@arching-kaos.org>2025-10-19 04:51:22 +0300
commitdc51374f544823057250916b871e1ea138ca92d2 (patch)
tree5aff3cd72921a07fbd75e7b8111b029fd6e9a292
parenta48fd0e2fc96e53fa2521d0e11e1c48b2b348849 (diff)
downloadarching-kaos-tools-dc51374f544823057250916b871e1ea138ca92d2.tar.gz
arching-kaos-tools-dc51374f544823057250916b871e1ea138ca92d2.tar.bz2
arching-kaos-tools-dc51374f544823057250916b871e1ea138ca92d2.zip
[gpg] Import from file flag
-rwxr-xr-xbin/ak-gpg3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ak-gpg b/bin/ak-gpg
index e76f407..3bbd736 100755
--- a/bin/ak-gpg
+++ b/bin/ak-gpg
@@ -41,6 +41,7 @@
## plain GPG output
## -lsl, --list-secret-keys-long Returns a list of secret GPG keys with
## their 1st uid
+## -i, --import-key <file> Imports a GPG key from a <file>
## -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
@@ -64,7 +65,6 @@ _ak_lib_load _ak_gpg
if [ ! -z $1 ]; then
case $1 in
-h | --help) _ak_usage; exit;;
- --example) example; exit;;
--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) shift; _ak_gpg_key_get_fingerprint_from_ipfs $1; exit;;
@@ -79,6 +79,7 @@ if [ ! -z $1 ]; then
--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;;
+ --import-key | -i) shift; _ak_gpg_key_import_from_file $1; exit;;
--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;;