87e782f91e5c8fb3c33b58cdda265e65122a2520

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

Merge pull request #4738 from valentinbud/feature-vault

Vault basic autocompletion

Diff

This diff is truncated to protect this page.

 1diff --git a/plugins/vault/README.md b/plugins/vault/README.md
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..0f61c9410a633f90a8ecc98c55a823839b7c5037
 4--- /dev/null
 5+++ b/plugins/vault/README.md
 6@@ -0,0 +1,18 @@
 7+## Vault (https://www.vaultproject.io) autocomplete plugin
 8+
 9+- Adds autocomplete options for all vault commands.
10+
11+####Show help for all commands
12+![General Help](http://i.imgur.com/yv5Db1r.png "Help for all commands")
13+
14+
15+####Create new Vault token
16+![Create token](http://i.imgur.com/xMegNgh.png "Create token")
17+
18+
19+####Enable audit backends
20+![Audit backends](http://i.imgur.com/fKLeiSF.png "Audit backends")
21+
22+
23+
24+Crafted with <3 by Valentin Bud ([@valentinbud](https://twitter.com/valentinbud))
25diff --git a/plugins/vault/_vault b/plugins/vault/_vault
26new file mode 100644
27index 0000000000000000000000000000000000000000..c5338dffa2786bfa73d83043de3e6541d0cbd482
28--- /dev/null
29+++ b/plugins/vault/_vault
30@@ -0,0 +1,400 @@
31+#compdef vault
32+
33+typeset -a main_args
34+main_args=(
35+    '(-version)-version[Prints the Vault version]'
36+    '(-help)-help[Prints Vault Help]'
37+)
38+
39+typeset -a general_args
40+general_args=(
41+    '(-help)-help[Prints Help]'
42+    '(-address)-address=-[The address of the Vault server. Overrides the VAULT_ADDR environment variable if set.]:address:'
43+    '(-ca-cert)-ca-cert=-[Path to a PEM encoded CA cert file to use to verify the Vault server SSL certificate. Overrides the VAULT_CACERT environment variable if set.]:file:_files -g "*.pem"'