docker-machine: sort commands to match `docker-machine help`
This makes is easier to see what's implemented and what's not
This commit is contained in:
parent
3e81c156e7
commit
6a0e2f7f8f
|
@ -27,15 +27,15 @@ local -a _docker_machine_cmds
|
||||||
|
|
||||||
_docker_machine_cmds=(
|
_docker_machine_cmds=(
|
||||||
'active:Get or set the active machine' \
|
'active:Get or set the active machine' \
|
||||||
'create:Create a machine' \
|
|
||||||
'config:Print the connection config for machine' \
|
'config:Print the connection config for machine' \
|
||||||
|
'create:Create a machine' \
|
||||||
|
'env:Display the commands to set up the environment for the Docker client' \
|
||||||
'inspect:Inspect information about a machine' \
|
'inspect:Inspect information about a machine' \
|
||||||
'ip:Get the IP address of a machine' \
|
'ip:Get the IP address of a machine' \
|
||||||
'kill:Kill a machine' \
|
'kill:Kill a machine' \
|
||||||
'ls:List machines' \
|
'ls:List machines' \
|
||||||
'restart:Restart a machine' \
|
'restart:Restart a machine' \
|
||||||
'rm:Remove a machine' \
|
'rm:Remove a machine' \
|
||||||
'env:Display the commands to set up the environment for the Docker client' \
|
|
||||||
'ssh:Log into or run a command on a machine with SSH' \
|
'ssh:Log into or run a command on a machine with SSH' \
|
||||||
'start:Start a machine' \
|
'start:Start a machine' \
|
||||||
'stop:Stop a machine' \
|
'stop:Stop a machine' \
|
||||||
|
@ -52,15 +52,15 @@ __active() {
|
||||||
__help() {
|
__help() {
|
||||||
_values 'Get help for subcommand' \
|
_values 'Get help for subcommand' \
|
||||||
'active' \
|
'active' \
|
||||||
'create' \
|
|
||||||
'config' \
|
'config' \
|
||||||
|
'create' \
|
||||||
|
'env' \
|
||||||
'inspect' \
|
'inspect' \
|
||||||
'ip' \
|
'ip' \
|
||||||
'kill' \
|
'kill' \
|
||||||
'ls' \
|
'ls' \
|
||||||
'restart' \
|
'restart' \
|
||||||
'rm' \
|
'rm' \
|
||||||
'env' \
|
|
||||||
'ssh' \
|
'ssh' \
|
||||||
'start' \
|
'start' \
|
||||||
'stop' \
|
'stop' \
|
||||||
|
@ -261,10 +261,12 @@ local -a _command_args
|
||||||
case "$words[1]" in
|
case "$words[1]" in
|
||||||
active)
|
active)
|
||||||
__active ;;
|
__active ;;
|
||||||
create)
|
|
||||||
__create ;;
|
|
||||||
config)
|
config)
|
||||||
__config ;;
|
__config ;;
|
||||||
|
create)
|
||||||
|
__create ;;
|
||||||
|
env)
|
||||||
|
__env ;;
|
||||||
inspect)
|
inspect)
|
||||||
__inspect ;;
|
__inspect ;;
|
||||||
ip)
|
ip)
|
||||||
|
@ -277,8 +279,6 @@ case "$words[1]" in
|
||||||
__restart ;;
|
__restart ;;
|
||||||
rm)
|
rm)
|
||||||
__rm ;;
|
__rm ;;
|
||||||
env)
|
|
||||||
__env ;;
|
|
||||||
ssh)
|
ssh)
|
||||||
__ssh ;;
|
__ssh ;;
|
||||||
start)
|
start)
|
||||||
|
|
Loading…
Reference in New Issue