.bin
.config
.local
.oh-my-zsh
lib
plugins
adb
ant
apache2-macports
arcanist
archlinux
asdf
autoenv
autojump
autopep8
aws
battery
bbedit
bgnotify
boot2docker
README.md
_boot2docker
bower
branch
brew
bundler
bwana
cabal
cake
cakephp3
capistrano
cargo
cask
catimg
celery
chruby
chucknorris
cloudapp
codeclimate
coffee
colemak
colored-man-pages
colorize
command-not-found
common-aliases
compleat
composer
copybuffer
copydir
copyfile
cp
cpanm
debian
dircycle
dirhistory
dirpersist
django
dnf
docker
docker-compose
dotenv
droplr
emacs
ember-cli
emoji
emoji-clock
emotty
encode64
extract
fabric
fancy-ctrl-z
fasd
fastfile
fbterm
fedora
firewalld
forklift
fossil
frontend-search
gas
gb
geeknote
gem
git
git-extras
git-flow
git-flow-avh
git-hubflow
git-prompt
git-remote-branch
gitfast
github
gitignore
glassfish
globalias
gnu-utils
go
golang
gpg-agent
gradle
grails
grunt
gulp
heroku
history
history-substring-search
httpie
iwhois
jake-node
jhbuild
jira
jruby
jsontools
jump
kate
kitchen
knife
knife_ssh
kubectl
laravel
laravel4
laravel5
last-working-dir
lein
lighthouse
lol
macports
man
marked2
mercurial
meteor
mix
mix-fast
mosh
mvn
mysql-macports
n98-magerun
nanoc
ng
nmap
node
nomad
npm
nvm
nyan
osx
pass
paver
pep8
per-directory-history
perl
perms
phing
pip
pj
pod
postgres
pow
powder
powify
profiles
pyenv
pylint
python
rails
rake
rake-fast
rand-quote
rbenv
rbfu
react-native
rebar
redis-cli
repo
rsync
ruby
rust
rvm
safe-paste
sbt
scala
scd
screen
scw
sfffe
shrink-path
singlechar
spring
sprunge
ssh-agent
stack
sublime
sudo
supervisor
suse
svn
svn-fast-info
swiftpm
symfony
symfony2
systemadmin
systemd
taskwarrior
terminalapp
terminitor
terraform
textastic
textmate
thefuck
themes
thor
tig
tmux
tmux-cssh
tmuxinator
torrent
tugboat
ubuntu
urltools
vagrant
vault
vi-mode
vim-interaction
virtualenv
virtualenvwrapper
vundle
wakeonlan
wd
web-search
wp-cli
xcode
yarn
yii
yii2
yum
z
zeus
zsh-navigation-tools
zsh_reload
templates
themes
tools
CONTRIBUTING.md
LICENSE.txt
README.md
oh-my-zsh.sh
.themes
.vim
.Xdefaults
.Xresources
.bash_profile
.bashrc
.profile
.vimrc
.xinitrc
.xsessionrc
.zshrc
README.md
74 lines
3.8 KiB
Plaintext
74 lines
3.8 KiB
Plaintext
#compdef boot2docker
|
|
|
|
# Boot2docker autocompletion for oh-my-zsh
|
|
# Requires: Boot2docker installed
|
|
# Author: Manfred Touron (@moul)
|
|
|
|
local -a _1st_arguments
|
|
_1st_arguments=(
|
|
"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":"[ssh-command] 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 (may corrupt disk image)."
|
|
"reset":"Forcefully power cycle the VM (may 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."
|
|
"socket":"Display the DOCKER_HOST socket to connect to."
|
|
"shellinit":"Display the shell command to set up the Docker client."
|
|
"status":"Display current state of VM."
|
|
"download":"Download Boot2Docker ISO image."
|
|
"upgrade":"Upgrade the Boot2Docker ISO image (restart if running)."
|
|
"version":"Display version information."
|
|
)
|
|
|
|
_arguments \
|
|
'(--basevmdk)--basevmdk[Path to VMDK to use as base for persistent partition]' \
|
|
'(--cpus)'{-c,--cpus}'[number of CPUs for boot2docker.]' \
|
|
'(--clobber)--clobber[overwrite Docker client binary on boot2docker upgrade]' \
|
|
'(--dhcp)--dhcp[enable VirtualBox host-only network DHCP.]' \
|
|
'(--dhcpip)--dhcpip[VirtualBox host-only network DHCP server address.]' \
|
|
'(-s --disksize)'{-s,--disksize}'[boot2docker disk image size (in MB).]' \
|
|
'(--dockerport)--dockerport[host Docker port (forward to port 2376 in VM). (deprecated - use with care)]' \
|
|
'(--driver)--driver[hypervisor driver.]' \
|
|
'(--force-upgrade-download)--force-upgrade-download[always download on boot2docker upgrade, never skip.]' \
|
|
'(--hostip)--hostip[VirtualBox host-only network IP address.]' \
|
|
'(--iso)--iso[path to boot2docker ISO image.]' \
|
|
'(--iso-url)--iso-url[/api.github.com/repos/boot2docker/boot2docker/releases": source URL to provision the boot2docker ISO image.]' \
|
|
'(--lowerip)--lowerip[VirtualBox host-only network DHCP lower bound.]' \
|
|
'(--memory)'{-m,--memory}'[virtual machine memory size (in MB).]' \
|
|
'(--netmask)--netmask[VirtualBox host-only network mask.]' \
|
|
'(--no-dummy)--no-dummy[Example parameter for the dummy driver.]' \
|
|
'(--retries)--retries[number of port knocking retries during 'start']' \
|
|
'(--serial)--serial[try serial console to get IP address (experimental)]' \
|
|
'(--serialfile)--serialfile[path to the serial socket/pipe.]' \
|
|
'(--ssh)--ssh[path to SSH client utility.]' \
|
|
'(--ssh-keygen)--ssh-keygen[path to ssh-keygen utility.]' \
|
|
'(--sshkey)--sshkey[path to SSH key to use.]' \
|
|
'(--sshport)--sshport[host SSH port (forward to port 22 in VM).]' \
|
|
'(--upperip)--upperip[VirtualBox host-only network DHCP upper bound.]' \
|
|
'(--vbm)--vbm[path to VirtualBox management utility.]' \
|
|
'(--vbox-share)--vbox-share[(defaults to "/Users=Users" if no shares are specified; use "disable" to explicitly prevent any shares from being created) List of directories to share during "up|start|boot" via VirtualBox Guest Additions, with optional labels]' \
|
|
'(--verbose)'{-v,--verbose}'[display verbose command invocations.]' \
|
|
'(--vm)--vm[virtual machine name.]' \
|
|
'(--waittime)--waittime[Time in milliseconds to wait between port knocking retries during 'start']' \
|
|
'*:: :->subcmds' && return 0
|
|
|
|
#_arguments '*:: :->command'
|
|
|
|
if (( CURRENT == 1 )); then
|
|
_describe -t commands "boot2docker command" _1st_arguments
|
|
return
|
|
fi
|