mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Update vault plugin - add "list" command
Add "list" command for vault
This commit is contained in:
parent
0ebe35968c
commit
5028ec3ad6
1 changed files with 8 additions and 0 deletions
|
|
@ -344,10 +344,18 @@ _vault_read() {
|
|||
': ::' && 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() {
|
||||
local -a commands
|
||||
|
||||
commands=(
|
||||
"list":"List data from Vault"
|
||||
"delete":"Delete operation on secrets in Vault"
|
||||
"path-help":"Look up the help for a path"
|
||||
"read":"Read data or secrets from Vault"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue