From 5028ec3ad6972b4b3551f67bd144ef1e879a60b4 Mon Sep 17 00:00:00 2001 From: Aliaksandr Prysmakou Date: Sat, 7 May 2016 13:24:10 -0700 Subject: [PATCH] Update vault plugin - add "list" command Add "list" command for vault --- plugins/vault/_vault | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/vault/_vault b/plugins/vault/_vault index c5338dff..5a592e0f 100644 --- a/plugins/vault/_vault +++ b/plugins/vault/_vault @@ -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"