Diff
1diff --git a/plugins/vagrant/_vagrant b/plugins/vagrant/_vagrant
2index 76f80b0d78b6b5f787c4997eedba0f63e2a9eb37..764f8954516fceebbbb6d7d2fed9daf01ed25b62 100644
3--- a/plugins/vagrant/_vagrant
4+++ b/plugins/vagrant/_vagrant
5@@ -1,4 +1,4 @@
6-#compdef vagrant
7+#compdef vagrant
8 #autoload
9
10 # vagrant zsh completion
11@@ -6,37 +6,45 @@
12 local -a _1st_arguments
13 _1st_arguments=(
14 'box:Box commands'
15- 'connect:Connects to a shared, remote Vagrant environment'
16+ 'connect:Connects to a remotely shared Vagrant environment'
17 'destroy:Destroys the vagrant environment'
18- 'docker-logs:Shows Docker logs'
19- 'docker-run:Run one-off commands against a Docker container'
20+ 'docker-logs:Outputs the logs from the Docker container'
21+ 'docker-run:Run a one-off command in the context of a container'
22 'global-status:Reports the status of all active Vagrant environments on the system'
23 'halt:Halts the currently running vagrant environment'
24+ 'help:Shows the help for a subcommand'
25 'init:[box_name] [box_url] Initializes current folder for Vagrant usage'
26+ 'list-commands:Outputs all available Vagrant subcommands, even non-primary ones'
27 'login:Authenticates against a Vagrant Cloud server to access protected boxes'
28 'package:Packages a vagrant environment for distribution'
29 'plugin:Plugin commands'
30 'provision:Run the provisioner'
31+ 'push:Deploys code in this environment to a configured destination'
32+ 'rdp:Connects to machine via RDP'
33 'reload:Reload the vagrant environment'
34 'resume:Resumes a suspend vagrant environment'
35- 'share:Shares the Vagrant environment and allows remote access'
36+ 'rsync:Syncs rsync synced folders to remote machine'
37+ 'rsync-auto:Syncs rsync synced folders automatically when files change'
38+ 'share:Shares your Vagrant environment with anyone in the world'
39 'ssh:SSH into the currently running environment'
40- 'ssh-config:outputs .ssh/config valid syntax for connecting to this environment via ssh'
41+ 'ssh-config:Outputs .ssh/config valid syntax for connecting to this environment via ssh'
42 'status:Shows the status of the current Vagrant environment'
43 'suspend:Suspends the currently running vagrant environment'
44 'up:Creates the vagrant environment'
45- 'version:Prints the currently installed Vagrant version and checks for new updates'
46+ 'version:Prints current and latest Vagrant version'
47 '--help:[TASK] Describe available tasks or one specific task'
48 '--version:Prints the Vagrant version information'
49 )
50
51 local -a _box_arguments
52 _box_arguments=(
53- 'add:NAME URI Add a box to the system'
54- 'help:COMMAND Describe subcommands or one specific subcommand'
55+ 'add:ADDRESS Adds a box to the system'
56+ 'help:COMMAND List subcommands'
57 'list:Lists all installed boxes'
58- 'remove:NAME Remove a box from the system'
59- 'repackage:NAME Repackage an installed box into a `.box` file.'
60+ 'outdated:Checks if a box has newer version'
61+ 'remove:NAME Removes a box from the system'
62+ 'repackage:NAME PROVIDER VERSION Repackages an installed box into a `.box` file'
63+ 'update:Updates box to a newer version, if available'
64 )
65
66 __task_list ()
67@@ -78,7 +86,7 @@ __vagrant-box ()
68 (options)
69 case $line[1] in
70 (repackage|remove)
71- _arguments ':feature:__box_list'
72+ _arguments ':feature:__box_list'
73 ;;
74 esac
75 ;;
76@@ -107,14 +115,14 @@ case $state in
77 (options)
78 case $line[1] in
79 (help)
80- _arguments ':feature:__task_list'
81+ _arguments ':feature:__task_list'
82 ;;
83
84 (box)
85 __vagrant-box
86 ;;
87 (up|provision|package|destroy|reload|ssh|ssh-config|halt|resume|status)
88- _arguments ':feature:__vm_list'
89+ _arguments ':feature:__vm_list'
90 esac
91 ;;
92 esac