Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Improve autocompletion of ansible-vault
- X-seq: zsh-workers 44633
- From: Lajos Koszti <ajnasz@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] Improve autocompletion of ansible-vault
- Date: Thu, 1 Aug 2019 13:18:29 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ajnasz-hu.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to; bh=NwokAZVUuRk92U8lJEck88GqeisNKqdIhuSlVOBhWkA=; b=Z2X9ksocjHgB5NHaRbMW6jk0Y0082/gZk2ki/IB5SA5j7EHSPltsh1I0ZXn9HpkwZZ m5mpxKWQC5mR95RoZjXi2xBCE2NXobqjodpRo6/90m64qjFSDUD4mRopDoe7yMPyS1Ba R85KQQxLc+dCz1vuRrzNg2c6AYgTMlmIVbxSpdTqm+9+gQs1r9UH2vAGMFZh6Uv7/S9M DYFAiv4s6wwUy+NmzcoElmbrllCfW05JtJ6J4FLG8+9p7PPhJA+W5kRImrLZpqDLAkAI DwXrN+iCncVQ8cdmNKuVqcE2yMhU3Kzl1USwSIpblZy1+OPOAZmu9eiGcVdlPflN5pdf jFpw==
- In-reply-to: <20190801111412.byegsvbqqjwzyu7q@ajnasz.hu>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20190801111412.byegsvbqqjwzyu7q@ajnasz.hu>
- Reply-to: Lajos Koszti <ajnasz@xxxxxxxxx>
The patch wasn't attached missing
--
Koszti Lajos
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author