1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 10:01:11 +02:00

44633: complete ansible-vault actions like create, edit, etc.

This commit is contained in:
Lajos Koszti 2019-08-01 13:18:29 +02:00 committed by Oliver Kiddle
parent 359a8fce00
commit 5ff3529caf
2 changed files with 7 additions and 0 deletions

View file

@ -1,5 +1,8 @@
2019-08-19 Oliver Kiddle <okiddle@yahoo.co.uk>
* Lajos Koszti: 44633: Completion/Unix/Command/_ansible:
complete ansible-vault actions like create, edit, etc.
* 44587: Completion/Linux/Command/_btrfs,
Completion/Linux/Command/_networkmanager,
Completion/Linux/Command/_ss, Completion/Linux/Command/_sshfs,

View file

@ -168,6 +168,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'
@ -313,6 +314,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