Update vault plugin - add "list" command
Add "list" command for vault
This commit is contained in:
parent
0ebe35968c
commit
5028ec3ad6
@ -344,10 +344,18 @@ _vault_read() {
|
|||||||
': ::' && ret=0
|
': ::' && ret=0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_vault_list() {
|
||||||
|
_arguments : \
|
||||||
|
${general_args[@]} \
|
||||||
|
'(-format)-format=-[The format for output. By default it is a whitespace-delimited table. This can also be json.]:format:(json table)' \
|
||||||
|
': ::' && ret=0
|
||||||
|
}
|
||||||
|
|
||||||
_vault_commands() {
|
_vault_commands() {
|
||||||
local -a commands
|
local -a commands
|
||||||
|
|
||||||
commands=(
|
commands=(
|
||||||
|
"list":"List data from Vault"
|
||||||
"delete":"Delete operation on secrets in Vault"
|
"delete":"Delete operation on secrets in Vault"
|
||||||
"path-help":"Look up the help for a path"
|
"path-help":"Look up the help for a path"
|
||||||
"read":"Read data or secrets from Vault"
|
"read":"Read data or secrets from Vault"
|
||||||
|
Loading…
Reference in New Issue
Block a user