aboutsummaryrefslogtreecommitdiffstats
path: root/src/_age
diff options
context:
space:
mode:
authorHg <dev@indigo.re>2024-11-19 09:09:47 +0100
committerHg <dev@indigo.re>2024-11-19 14:47:27 +0100
commit6dec4885d373c3bfdf4b80b2ce54efecd1206083 (patch)
tree85ebc8fe8e94bcfd689a876e64584cb9c90b5f46 /src/_age
parentMerge pull request #1111 from zsh-users/add-util-linux (diff)
downloadzsh-completions-6dec4885d373c3bfdf4b80b2ce54efecd1206083.tar
zsh-completions-6dec4885d373c3bfdf4b80b2ce54efecd1206083.tar.gz
zsh-completions-6dec4885d373c3bfdf4b80b2ce54efecd1206083.tar.bz2
zsh-completions-6dec4885d373c3bfdf4b80b2ce54efecd1206083.tar.lz
zsh-completions-6dec4885d373c3bfdf4b80b2ce54efecd1206083.tar.xz
zsh-completions-6dec4885d373c3bfdf4b80b2ce54efecd1206083.tar.zst
zsh-completions-6dec4885d373c3bfdf4b80b2ce54efecd1206083.zip
add completion for age
Diffstat (limited to 'src/_age')
-rw-r--r--src/_age28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/_age b/src/_age
new file mode 100644
index 0000000..76439a0
--- /dev/null
+++ b/src/_age
@@ -0,0 +1,28 @@
+#compdef age
+# ------------------------------------------------------------------------------
+# Description
+# -----------
+#
+# Completion script for neo (https://github.com/FiloSottile/age).
+#
+# ------------------------------------------------------------------------------
+# Authors
+# -------
+#
+# * Hydrargyrum (https://github.com/hydrargyrum)
+#
+# ------------------------------------------------------------------------------
+
+_arguments \
+ -A '-*' \
+ '(-h --help)'{-h,--help}'[show help message and exit]' \
+ '(-e --encrypt -d --decrypt)'{-e,--encrypt}'[Encrypt INPUT to OUTPUT]' \
+ '(-e --encrypt -d --decrypt -a --armor -p --passphrase -r --recipient -R --recipients-file)'{-d,--decrypt}'[Decrypt INPUT to OUTPUT]' \
+ '(-i --identity)'{-i,--identity=}'[Encrypt/Decrypt using the identities at PATH]:IDENTITY:' \
+ '(-o --output)'{-o,--output=}'[Write encrypted/decrypted file to OUTPUT]:OUTPUT:_files' \
+ '(-j --plugin)'{-j,--plugin=}'[Encrypt/Decrypt using the data-less PLUGIN]:PLUGIN:' \
+ '(-r --recipient -d --decrypt)'{-r,--recipient=}'[Encrypt to the explicitly specified RECIPIENT]:RECIPIENT:' \
+ '(-R --recipients-file -d --decrypt)'{-R,--recipients-file=}'[Encrypt to the RECIPIENTS listed in the file at PATH]:RECIPIENTS_FILE:_files' \
+ '(-a --armor -d --decrypt)'{-a,--armor}'[Encrypt to an ASCII-only "armored" encoding]' \
+ '(-p --passphrase -d --decrypt)'{-p,--passphrase}'[Encrypt with a passphrase]' \
+ :INPUT:_files