From d6ac5c655627ec57b1e66ae7e66837ed332d362d Mon Sep 17 00:00:00 2001 From: Steve Durrheimer Date: Thu, 15 Oct 2015 09:54:48 +0200 Subject: [PATCH] Add zsh completion for '--ipam-driver --subnet --ip-range --gateway --aux-address' for 'docker network create' Signed-off-by: Steve Durrheimer --- contrib/completion/zsh/_docker | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/completion/zsh/_docker b/contrib/completion/zsh/_docker index cd1d667897..b33fd98848 100644 --- a/contrib/completion/zsh/_docker +++ b/contrib/completion/zsh/_docker @@ -253,6 +253,11 @@ __docker_network_subcommand() { _arguments -A '-*' \ $opts_help \ "($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 ;; (inspect|rm)