Update age completion and support age-keygen
This commit is contained in:
parent
c3b2ff2d8f
commit
2f81ccb55e
39
src/_age
39
src/_age
|
|
@ -1,9 +1,9 @@
|
||||||
#compdef age
|
#compdef age age-keygen
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Description
|
# Description
|
||||||
# -----------
|
# -----------
|
||||||
#
|
#
|
||||||
# Completion script for age 1.1.1 (https://github.com/FiloSottile/age).
|
# Completion script for age 1.2.1 (https://github.com/FiloSottile/age).
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Authors
|
# Authors
|
||||||
|
|
@ -13,19 +13,28 @@
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
_arguments \
|
case $service in
|
||||||
-A '-*' \
|
(age)
|
||||||
'(- *)'{-h,--help}'[show help message and exit]' \
|
_arguments \
|
||||||
'(-e --encrypt -d --decrypt)'{-e,--encrypt}'[Encrypt INPUT to OUTPUT]' \
|
-A '-*' \
|
||||||
'(-e --encrypt -d --decrypt -a --armor -p --passphrase -r --recipient -R --recipients-file)'{-d,--decrypt}'[Decrypt INPUT to OUTPUT]' \
|
'(- *)'{-h,--help}'[show help message and exit]' \
|
||||||
\*{-i,--identity=}'[Encrypt/Decrypt using the identities at PATH]:IDENTITY:_files' \
|
'(-e --encrypt -d --decrypt)'{-e,--encrypt}'[Encrypt the input to the output. Default if omitted]' \
|
||||||
'(-o --output)'{-o,--output=}'[Write encrypted/decrypted file to OUTPUT]:OUTPUT:_files' \
|
'(-e --encrypt -d --decrypt -a --armor -p --passphrase -r --recipient -R --recipients-file)'{-d,--decrypt}'[Decrypt the input to the output]' \
|
||||||
'(-j --plugin)'{-j,--plugin=}'[Encrypt/Decrypt using the data-less PLUGIN]:PLUGIN:' \
|
'(-o --output)'{-o,--output=}'[Write the result to the given file]:OUTPUT:_files' \
|
||||||
'(-d --decrypt)'\*{-r,--recipient=}'[Encrypt to the explicitly specified RECIPIENT]:RECIPIENT:' \
|
'(-a --armor -d --decrypt)'{-a,--armor}'[Encrypt to a PEM encoded format]' \
|
||||||
'(-d --decrypt)'\*{-R,--recipients-file=}'[Encrypt to the RECIPIENTS listed in the file at PATH]:RECIPIENTS_FILE:_files' \
|
'(-p --passphrase -d --decrypt)'{-p,--passphrase}'[Encrypt with a passphrase]' \
|
||||||
'(-a --armor -d --decrypt)'{-a,--armor}'[Encrypt to an ASCII-only "armored" encoding]' \
|
'(-d --decrypt)'\*{-r,--recipient=}'[Encrypt to the explicitly specified RECIPIENT]:RECIPIENT:' \
|
||||||
'(-p --passphrase -d --decrypt)'{-p,--passphrase}'[Encrypt with a passphrase]' \
|
'(-d --decrypt)'\*{-R,--recipients-file=}'[Encrypt to the RECIPIENTS listed in the file at PATH]:RECIPIENTS_FILE:_files' \
|
||||||
:INPUT:_files
|
\*{-i,--identity=}'[Use the given identify file]:IDENTITY:_files' \
|
||||||
|
:INPUT:_files
|
||||||
|
;;
|
||||||
|
(age-keygen)
|
||||||
|
_arguments \
|
||||||
|
'(-o --output)'{-o,--output}'[write the result to the given file]:file:_files' \
|
||||||
|
'-y[convert an identity file to a recipients file]' \
|
||||||
|
'*:input'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Local Variables:
|
# Local Variables:
|
||||||
# mode: Shell-Script
|
# mode: Shell-Script
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue