4c21557862bbfa5523193f4bbb8ddbf91d88e827
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Diff
This diff is truncated to protect this page.
1diff --git a/plugins/boot2docker/README.md b/plugins/boot2docker/README.md
2new file mode 100644
3index 0000000000000000000000000000000000000000..9551e235109d0be2b4c182507496be150ae10e30
4--- /dev/null
5+++ b/plugins/boot2docker/README.md
6@@ -0,0 +1,6 @@
7+## Boot2docker autocomplete plugin
8+
9+- Adds autocomplete options for all boot2docker commands.
10+
11+
12+Maintainer : Manfred Touron ([@moul](https://github.com/moul))
13diff --git a/plugins/boot2docker/_boot2docker b/plugins/boot2docker/_boot2docker
14new file mode 100644
15index 0000000000000000000000000000000000000000..baa08b26d89f5744af98c08dee13129b2ce5e910
16--- /dev/null
17+++ b/plugins/boot2docker/_boot2docker
18@@ -0,0 +1,70 @@
19+#compdef boot2docker
20+
21+# Boot2docker autocompletion for oh-my-zsh
22+# Requires: Boot2docker installed
23+# Author: Manfred Touron (@moul)
24+
25+local -a _1st_arguments
26+_1st_arguments=(
27+ "init":"Create a new Boot2Docker VM."
28+ "up":"Start VM from any states."
29+ "start":"Start VM from any states."
30+ "boot":"Start VM from any states."
31+ "ssh":"[ssh-command] Login to VM via SSH."
32+ "save":"Suspend VM and save state to disk."
33+ "suspend":"Suspend VM and save state to disk."
34+ "down":"Gracefully shutdown the VM."
35+ "stop":"Gracefully shutdown the VM."
36+ "halt":"Gracefully shutdown the VM."
37+ "restart":"Gracefully reboot the VM."
38+ "poweroff":"Forcefully power off the VM (may corrupt disk image)."
39+ "reset":"Forcefully power cycle the VM (may corrupt disk image)."
40+ "delete":"Delete Boot2Docker VM and its disk image."
41+ "destroy":"Delete Boot2Docker VM and its disk image."
42+ "config":"Show selected profile file settings."
43+ "cfg":"Show selected profile file settings."
44+ "info":"Display detailed information of VM."
45+ "ip":"Display the IP address of the VM's Host-only network."
46+ "socket":"Display the DOCKER_HOST socket to connect to."
47+ "shellinit":"Display the shell command to set up the Docker client."
48+ "status":"Display current state of VM."
49+ "download":"Download Boot2Docker ISO image."
50+ "upgrade":"Upgrade the Boot2Docker ISO image (restart if running)."
51+ "version":"Display version information."
52+)
53+
54+_arguments \
55+ '(--basevmdk)--basevmdk[Path to VMDK to use as base for persistent partition]' \
56+ '(--dhcp)--dhcp[enable VirtualBox host-only network DHCP.]' \
57+ '(--dhcpip)--dhcpip[VirtualBox host-only network DHCP server address.]' \
58+ '(-s --disksize)'{-s,--disksize}'[boot2docker disk image size (in MB).]' \
59+ '(--dockerport)--dockerport[host Docker port (forward to port 2376 in VM). (deprecated - use with care)]' \
60+ '(--driver)--driver[hypervisor driver.]' \
61+ '(--hostip)--hostip[VirtualBox host-only network IP address.]' \
62+ '(--iso)--iso[path to boot2docker ISO image.]' \
63+ '(--iso-url)--iso-url[/api.github.com/repos/boot2docker/boot2docker/releases": source URL to provision the boot2docker ISO image.]' \
64+ '(--lowerip)--lowerip[VirtualBox host-only network DHCP lower bound.]' \
65+ '(--memory)'{-m,--memory}'[virtual machine memory size (in MB).]' \
66+ '(--netmask)--netmask[VirtualBox host-only network mask.]' \
67+ '(--no-dummy)--no-dummy[Example parameter for the dummy driver.]' \
68+ '(--retries)--retries[number of port knocking retries during 'start']' \
69+ '(--serial)--serial[try serial console to get IP address (experimental)]' \
70+ '(--serialfile)--serialfile[path to the serial socket/pipe.]' \
71+ '(--ssh)--ssh[path to SSH client utility.]' \
72+ '(--ssh-keygen)--ssh-keygen[path to ssh-keygen utility.]' \
73+ '(--sshkey)--sshkey[path to SSH key to use.]' \
74+ '(--sshport)--sshport[host SSH port (forward to port 22 in VM).]' \
75+ '(--upperip)--upperip[VirtualBox host-only network DHCP upper bound.]' \
76+ '(--vbm)--vbm[path to VirtualBox management utility.]' \