parent
88527a2778
commit
7b58f23040
|
|
@ -19,16 +19,15 @@ _ecdsautil_args() {
|
||||||
_arguments '1:somefile:_files'
|
_arguments '1:somefile:_files'
|
||||||
;;
|
;;
|
||||||
(verify)
|
(verify)
|
||||||
_arguments '-s[signature]:secret:_files' '-p[publickey]:pubkey:_files'
|
_arguments \
|
||||||
'-n[signaturecount]:signaturecount:""' ':file:_files'
|
'-s[signature]:secret:_files' '-p[publickey]:pubkey:_files' \
|
||||||
|
'-n[signaturecount]:signaturecount:""' ':file:_files'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
_ecdsautil() {
|
_ecdsautil() {
|
||||||
local -a commands
|
local -a commands=(
|
||||||
|
|
||||||
commands=(
|
|
||||||
"help:Show help"
|
"help:Show help"
|
||||||
"generate-key:generate a new secret on stdout"
|
"generate-key:generate a new secret on stdout"
|
||||||
"show-key:output public key of secret read from stdin"
|
"show-key:output public key of secret read from stdin"
|
||||||
|
|
@ -38,7 +37,7 @@ _ecdsautil() {
|
||||||
|
|
||||||
_arguments -C \
|
_arguments -C \
|
||||||
'1:cmd:->cmds' \
|
'1:cmd:->cmds' \
|
||||||
'*:: :->args' \
|
'*:: :->args'
|
||||||
|
|
||||||
case "$state" in
|
case "$state" in
|
||||||
(cmds)
|
(cmds)
|
||||||
|
|
@ -51,3 +50,11 @@ _ecdsautil() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_ecdsautil "$@"
|
_ecdsautil "$@"
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# mode: Shell-Script
|
||||||
|
# sh-indentation: 2
|
||||||
|
# indent-tabs-mode: nil
|
||||||
|
# sh-basic-offset: 2
|
||||||
|
# End:
|
||||||
|
# vim: ft=zsh sw=2 ts=2 et
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue