aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicoulaj <julien.nicoulaud@gmail.com>2016-02-08 20:24:18 +0100
committernicoulaj <julien.nicoulaud@gmail.com>2016-02-08 20:24:18 +0100
commitb10a35134a96e2877d0af15a3853e12c93cb8788 (patch)
treee24e94660bcd21e20963b7ecc996234d3c4c5bc7
parentMerge pull request #381 from jozefizso/license_middleman (diff)
parentdeprecated boot2docker (switch to docker-machine) (diff)
downloadzsh-completions-b10a35134a96e2877d0af15a3853e12c93cb8788.tar
zsh-completions-b10a35134a96e2877d0af15a3853e12c93cb8788.tar.gz
zsh-completions-b10a35134a96e2877d0af15a3853e12c93cb8788.tar.bz2
zsh-completions-b10a35134a96e2877d0af15a3853e12c93cb8788.tar.lz
zsh-completions-b10a35134a96e2877d0af15a3853e12c93cb8788.tar.xz
zsh-completions-b10a35134a96e2877d0af15a3853e12c93cb8788.tar.zst
zsh-completions-b10a35134a96e2877d0af15a3853e12c93cb8788.zip
Merge pull request #382 from zsh-users/remote-boot2docker
deprecated boot2docker (switch to docker-machine)
-rw-r--r--src/_boot2docker87
1 files changed, 0 insertions, 87 deletions
diff --git a/src/_boot2docker b/src/_boot2docker
deleted file mode 100644
index 8f1a9c5..0000000
--- a/src/_boot2docker
+++ /dev/null
@@ -1,87 +0,0 @@
-#compdef boot2docker
-# ------------------------------------------------------------------------------
-# Description
-# -----------
-#
-# Completion script for boot2docker (https://github.com/boot2docker/boot2docker-cli).
-#
-# ------------------------------------------------------------------------------
-# Authors
-# -------
-#
-# * hhatto (https://github.com/hhatto)
-#
-# ------------------------------------------------------------------------------
-
-
-_boot2docker() {
- local context state line
-
- _arguments -C \
- --basevmdk'[Path to VMDK to use as base for persistent partition]:vmdk:' \
- --dhcp'[enable VirtualBox host-only network DHCP. default=true]' \
- --dhcpip'[VirtualBox host-only network DHCP server address. default=192.168.59.99]' \
- '(-s --disksize)'{-s,--disksize}'[boot2docker disk image size (in MB). default=20000.]:disksize:' \
- --dockerport'[host Docker port (forward to port 2375 in VM).]:PORT:' \
- --hostip'[VirtualBox host-only network IP address.]:IP:' \
- --iso'[path to boot2docker ISO image.]:FILE:_files' \
- --lowerip'[VirtualBox host-only network DHCP lower bound.]:IP:' \
- '(-m --memory)'{-m,--memory}'[virtual machine memory size (in MB). default=2048]' \
- --netmask'[VirtualBox host-only network mask.]' \
- --serial'[try serial console to get IP address (experimental) default=false]' \
- --serialfile'[path to the serial socket/pipe.]:FILE:_files' \
- --ssh'[path to SSH client utility. default="ssh"]:SSH:' \
- --ssh-keygen'[path to ssh-keygen utility. default="ssh-keygen"]:KEYGEN:' \
- --sshkey'[path to SSH key to use.]:FILE:_files' \
- --sshport'[host SSH port (forward to port 22 in VM). default=2022]:PORT:' \
- --upperip'[VirtualBox host-only network DHCP upper bound. default=192.168.59.254]:IP:' \
- --vbm'[path to VirtualBox management utility. default="VBoxManage"]' \
- '(-v --verbose)'{-v,--verbose}'[display verbose command invocations. default=false]' \
- --vm'[virtual machine name. default="boot2docker-vm"]' \
- '*::boot2docker commands:_boot2docker_command'
-}
-
-(( $+functions[_boot2docker_command] )) ||
-_boot2docker_command() {
- local _boot2docker_cmds
-
- _boot2docker_cmds=(
- 'init:Create a new boot2docker VM.' \
- 'up:Start VM from any states.' \
- 'start:Start VM from any states.' \
- 'boot:Start VM from any states.' \
- 'ssh:Login to VM via SSH.' \
- 'save:Suspend VM and save state to disk.' \
- 'suspend:Suspend VM and save state to disk.' \
- "down:Gracefully shutdown the VM." \
- "stop:Gracefully shutdown the VM." \
- "halt:Gracefully shutdown the VM." \
- "restart:Gracefully reboot the VM." \
- "poweroff:Forcefully power off the VM (might corrupt disk image)." \
- "reset:Forcefully power cycle the VM (might corrupt disk image)." \
- "delete:Delete boot2docker VM and its disk image." \
- "destroy:Delete boot2docker VM and its disk image." \
- "config:Show selected profile file settings." \
- "cfg:Show selected profile file settings." \
- "info:Display detailed information of VM." \
- "ip:Display the IP address of the VM's Host-only network." \
- "status:Display current state of VM." \
- "download:Download boot2docker ISO image." \
- "upgrade:Upgrade the boot2docker ISO image (if vm is running it will be stopped and started)." \
- "version:Display version information."
- )
-
- if (( CURRENT == 1 )); then
- _describe -t commands 'boot2docker subcommand' _boot2docker_cmds
- fi
-}
-
-_boot2docker "$@"
-
-# Local Variables:
-# mode: Shell-Script
-# sh-indentation: 2
-# indent-tabs-mode: nil
-# sh-basic-offset: 2
-# End:
-# vim: ft=zsh sw=2 ts=2 et