From: Lajos Koszti <ajnasz@ajnasz.hu>
To: zsh-workers@zsh.org
Subject: Re: [PATCH] Improve autocompletion of ansible-vault
Date: Thu, 1 Aug 2019 13:18:29 +0200 [thread overview]
Message-ID: <20190801111829.3jcg2dcrywydwyzh@ajnasz.hu> (raw)
In-Reply-To: <20190801111412.byegsvbqqjwzyu7q@ajnasz.hu>
[-- Attachment #1: Type: text/plain, Size: 53 bytes --]
The patch wasn't attached missing
--
Koszti Lajos
[-- Attachment #2: patch.diff --]
[-- Type: text/x-diff, Size: 903 bytes --]
diff --git a/Completion/Unix/Command/_ansible b/Completion/Unix/Command/_ansible
index a6e586da3..0ba5ba2b9 100644
--- a/Completion/Unix/Command/_ansible
+++ b/Completion/Unix/Command/_ansible
@@ -166,6 +166,7 @@ case $service in
;;
ansible-vault)
args=( -A "-*" $args
+ '::action:(create decrypt edit encrypt encrypt_string rekey view)'
'--new-vault-id=[specify new vault identity to use for rekey]:vault id'
'--new-vault-password-file=[specify new vault password file to use for rekey]:file:_files'
'*::args:->vault'
@@ -310,6 +311,9 @@ case $state in
'(-n --name)'{-n+,--name=}'[specify the variable name]:variable'
'--stdin-name=[specify the variable name for stdin]:variable'
)
+ ;|
+ create|edit|rekey|view) args+=( ':file:_files' ) ;|
+ (en|de)crypt) args+=( '::file:_files' )
;;
esac
_arguments -s -S $args && ret=0
prev parent reply other threads:[~2019-08-01 11:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-01 11:14 Lajos Koszti
2019-08-01 11:18 ` Lajos Koszti [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190801111829.3jcg2dcrywydwyzh@ajnasz.hu \
--to=ajnasz@ajnasz.hu \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).