about summary refs log tree commit diff
path: root/Completion/Unix/Command/_ansible
diff options
context:
space:
mode:
authorLajos Koszti <ajnasz@ajnasz.hu>2019-08-01 13:18:29 +0200
committerOliver Kiddle <okiddle@yahoo.co.uk>2019-08-19 16:25:54 +0200
commit5ff3529caf8bc31725714eef19a10d7a93f8be87 (patch)
tree59c97193c639b006e24bb37e491c05bf59115058 /Completion/Unix/Command/_ansible
parent359a8fce0085888306330354e567f1d0523d230d (diff)
downloadzsh-5ff3529caf8bc31725714eef19a10d7a93f8be87.tar.gz
zsh-5ff3529caf8bc31725714eef19a10d7a93f8be87.tar.xz
zsh-5ff3529caf8bc31725714eef19a10d7a93f8be87.zip
44633: complete ansible-vault actions like create, edit, etc.
Diffstat (limited to 'Completion/Unix/Command/_ansible')
-rw-r--r--Completion/Unix/Command/_ansible4
1 files changed, 4 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_ansible b/Completion/Unix/Command/_ansible
index 686e9d355..3e6a411c3 100644
--- a/Completion/Unix/Command/_ansible
+++ b/Completion/Unix/Command/_ansible
@@ -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