mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-04 10:41:11 +02:00
44633: complete ansible-vault actions like create, edit, etc.
This commit is contained in:
parent
359a8fce00
commit
5ff3529caf
2 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
||||||
2019-08-19 Oliver Kiddle <okiddle@yahoo.co.uk>
|
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,
|
* 44587: Completion/Linux/Command/_btrfs,
|
||||||
Completion/Linux/Command/_networkmanager,
|
Completion/Linux/Command/_networkmanager,
|
||||||
Completion/Linux/Command/_ss, Completion/Linux/Command/_sshfs,
|
Completion/Linux/Command/_ss, Completion/Linux/Command/_sshfs,
|
||||||
|
|
|
@ -168,6 +168,7 @@ case $service in
|
||||||
;;
|
;;
|
||||||
ansible-vault)
|
ansible-vault)
|
||||||
args=( -A "-*" $args
|
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-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'
|
'--new-vault-password-file=[specify new vault password file to use for rekey]:file:_files'
|
||||||
'*::args:->vault'
|
'*::args:->vault'
|
||||||
|
@ -313,6 +314,9 @@ case $state in
|
||||||
'(-n --name)'{-n+,--name=}'[specify the variable name]:variable'
|
'(-n --name)'{-n+,--name=}'[specify the variable name]:variable'
|
||||||
'--stdin-name=[specify the variable name for stdin]:variable'
|
'--stdin-name=[specify the variable name for stdin]:variable'
|
||||||
)
|
)
|
||||||
|
;|
|
||||||
|
create|edit|rekey|view) args+=( ':file:_files' ) ;|
|
||||||
|
(en|de)crypt) args+=( '::file:_files' )
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
_arguments -s -S $args && ret=0
|
_arguments -s -S $args && ret=0
|
||||||
|
|
Loading…
Reference in a new issue