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

bash completion for docker network create --internal, --ipam-opt

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-01-18 07:50:26 -08:00 committed by Tibor Vass
parent 91ddf04563
commit c78eb02bb1

View file

@ -1199,7 +1199,7 @@ _docker_network_connect() {
_docker_network_create() {
case "$prev" in
--aux-address|--gateway|--ip-range|--opt|-o|--subnet)
--aux-address|--gateway|--ip-range|--ipam-opt|--opt|-o|--subnet)
return
;;
--ipam-driver)
@ -1218,7 +1218,7 @@ _docker_network_create() {
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--aux-address --driver -d --gateway --help --ip-range --ipam-driver --opt -o --subnet" -- "$cur" ) )
COMPREPLY=( $( compgen -W "--aux-address --driver -d --gateway --help --internal --ip-range --ipam-driver --ipam-opt --opt -o --subnet" -- "$cur" ) )
;;
esac
}