1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Add zsh completion for '--ipam-driver --subnet --ip-range --gateway --aux-address' for 'docker network create'

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
Steve Durrheimer 2015-10-15 09:54:48 +02:00
parent f255155f6b
commit a00c0d795d

View file

@ -253,6 +253,11 @@ __docker_network_subcommand() {
_arguments -A '-*' \ _arguments -A '-*' \
$opts_help \ $opts_help \
"($help -d --driver)"{-d,--driver=}"[Driver to manage the Network]:driver:(null host bridge overlay)" \ "($help -d --driver)"{-d,--driver=}"[Driver to manage the Network]:driver:(null host bridge overlay)" \
"($help)--ipam-driver=-[IP Address Management Driver]:driver:(default)" \
"($help)*--subnet=-[Subnet in CIDR format that represents a network segment]:IP/mask: " \
"($help)*--ip-range=-[Allocate container ip from a sub-range]:IP/mask: " \
"($help)*--gateway=-[ipv4 or ipv6 Gateway for the master subnet]:IP: " \
"($help)*--aux-address[Auxiliary ipv4 or ipv6 addresses used by network driver]:key=IP: " \
"($help -)1:Network Name: " && ret=0 "($help -)1:Network Name: " && ret=0
;; ;;
(inspect|rm) (inspect|rm)