6dbfdd9e31cefcb9510edf5e526cf572cbcfa776

Author
Fedyashev Nikita <loci.master@gmail.com>
Committer
Fedyashev Nikita <loci.master@gmail.com>
Date

Message

improved formatting; redundant attributes deleted

Diff

This diff is truncated to protect this page.

  1diff --git a/plugins/vagrant/_vagrant b/plugins/vagrant/_vagrant
  2index ea7fd5f7457178103196733caf29f5bae56cbf84..483b29c53d57186b01ec55d780f8debce0cb5995 100644
  3--- a/plugins/vagrant/_vagrant
  4+++ b/plugins/vagrant/_vagrant
  5@@ -1,7 +1,35 @@
  6 #compdef vagrant 
  7 #autoload
  8 
  9-# vagrant zsh completion, based on homebrew completion
 10+# vagrant zsh completion
 11+
 12+local -a _1st_arguments
 13+_1st_arguments=(
 14+    'box:Box commands'
 15+    'destroy:Destroys the vagrant environment'
 16+    'halt:Halts the currently running vagrant environment'
 17+    'help:[TASK] Describe available tasks or one specific task'
 18+    'init:[box_name] [box_url] Initializes current folder for Vagrant usage'
 19+    'package:Packages a vagrant environment for distribution'
 20+    'provision:Run the provisioner'
 21+    'reload:Reload the vagrant environment'
 22+    'resume:Resumes a suspend vagrant environment'
 23+    'ssh:SSH into the currently running environment'
 24+    'ssh_config:outputs .ssh/config valid syntax for connecting to this environment via ssh.'
 25+    'status:Shows the status of the current Vagrant environment.'
 26+    'suspend:Suspends the currently running vagrant environment'
 27+    'up:Creates the vagrant environment'
 28+    'version:Prints the Vagrant version information'
 29+)
 30+
 31+local -a _box_arguments
 32+_box_arguments=(
 33+    'add:NAME URI Add a box to the system'
 34+    'help:COMMAND Describe subcommands or one specific subcommand'
 35+    'list:Lists all installed boxes'
 36+    'remove:NAME Remove a box from the system'
 37+    'repackage:NAME Repackage an installed box into a `.box` file.'
 38+)
 39 
 40 __task_list ()
 41 {
 42@@ -36,43 +64,15 @@ __vagrant-box ()
 43        (options)
 44            case $line[1] in
 45                (repackage|remove)
 46-                   _arguments \
 47-                       -F'[Fetch from origin before performing finish]' \
 48-                       -r'[Rebase instead of merge]'\
 49-                         ':feature:__box_list' 
 50+                   _arguments ':feature:__box_list' 
 51                ;;
 52            esac
 53        ;;
 54     esac
 55 }
 56 
 57-local -a _1st_arguments
 58-_1st_arguments=(
 59-    'box:Box commands'
 60-    'destroy:Destroys the vagrant environment'
 61-    'halt:Halts the currently running vagrant environment'
 62-    'help:[TASK] Describe available tasks or one specific task'
 63-    'init:[box_name] [box_url] Initializes current folder for Vagrant usage'
 64-    'package:Packages a vagrant environment for distribution'
 65-    'provision:Run the provisioner'
 66-    'reload:Reload the vagrant environment'
 67-    'resume:Resumes a suspend vagrant environment'
 68-    'ssh:SSH into the currently running environment'
 69-    'ssh_config:outputs .ssh/config valid syntax for connecting to this environment via ssh.'
 70-    'status:Shows the status of the current Vagrant environment.'
 71-    'suspend:Suspends the currently running vagrant environment'
 72-    'up:Creates the vagrant environment'
 73-    'version:Prints the Vagrant version information'
 74-)
 75 
 76-local -a _box_arguments
 77-_box_arguments=(
 78-    'add:NAME URI Add a box to the system'
 79-    'help:COMMAND Describe subcommands or one specific subcommand'
 80-    'list:Lists all installed boxes'
 81-    'remove:NAME Remove a box from the system'
 82-    'repackage:NAME Repackage an installed box into a `.box` file.'
 83-)
 84+
 85 
 86 local expl
 87 local -a boxes installed_boxes
 88@@ -84,7 +84,6 @@ _arguments -C \
 89     ':command:->command' \
 90     '*::options:->options'
 91 
 92-
 93 case $state in
 94   (command)
 95       _describe -t commands "gem subcommand" _1st_arguments
 96@@ -94,10 +93,7 @@ case $state in
 97   (options)
 98     case $line[1] in
 99       (help)
100-         _arguments \
101-             -F'[Fetch from origin before performing finish]' \
102-             -r'[Rebase instead of merge]'\
103-               ':feature:__task_list' 
104+         _arguments ':feature:__task_list'