From f91dd252838ceceaa54da95ff6d335e07d335e3f Mon Sep 17 00:00:00 2001 From: Marc Cornellà Date: Thu, 8 Aug 2024 20:40:13 +0200 Subject: refactor(vault)!: remove deprecated `vault` plugin in favor of official completion BREAKING CHANGE: the `vault` plugin added completion for the `vault` CLI. Since a while back there is already official completion. This change removes the deprecated plugin. --- plugins/vault/README.md | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 plugins/vault/README.md (limited to 'plugins/vault/README.md') diff --git a/plugins/vault/README.md b/plugins/vault/README.md deleted file mode 100644 index 69051d2b2..000000000 --- a/plugins/vault/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# Vault plugin - -Note: this plugin is deprecated. Use the [official autocompletion](https://www.vaultproject.io/docs/commands/index.html#autocompletion) instead. - -------- - -Adds autocomplete options for all [vault](https://www.vaultproject.io) commands. - -To use it, add `vault` to the plugins array in your zshrc file: - -```zsh -plugins=(... vault) -``` - -Crafted with <3 by Valentin Bud ([@valentinbud](https://twitter.com/valentinbud)) -- cgit v1.2.3-70-g09d2 From 9ad764d80c3b0cca1fb3251cb9c14e25543d5a42 Mon Sep 17 00:00:00 2001 From: nervo Date: Tue, 19 Nov 2024 20:47:20 +0100 Subject: feat(vault): re-introduce vault plugin (#12753) Co-authored-by: Carlo Sala --- plugins/vault/README.md | 9 +++++++++ plugins/vault/vault.plugin.zsh | 7 +++++++ 2 files changed, 16 insertions(+) create mode 100644 plugins/vault/README.md create mode 100644 plugins/vault/vault.plugin.zsh (limited to 'plugins/vault/README.md') diff --git a/plugins/vault/README.md b/plugins/vault/README.md new file mode 100644 index 000000000..cc270a385 --- /dev/null +++ b/plugins/vault/README.md @@ -0,0 +1,9 @@ +# Vault plugin + +This plugin adds completion for [Vault](https://www.vaultproject.io/), the secrets and sensitive data manager. + +To use it, add `vault` to the plugins array in your zshrc file: + +```zsh +plugins=(... vault) +``` diff --git a/plugins/vault/vault.plugin.zsh b/plugins/vault/vault.plugin.zsh new file mode 100644 index 000000000..996cd12ad --- /dev/null +++ b/plugins/vault/vault.plugin.zsh @@ -0,0 +1,7 @@ +# Completion +if (( ! $+commands[vault] )); then + return +fi + +autoload -Uz bashcompinit && bashcompinit +complete -o nospace -C vault vault -- cgit v1.2.3-70-g09d2