bash completion for new `docker network create` options
Signed-off-by: Harald Albers <github@albersweb.de>master
parent
4e6212f389
commit
a2bbb2c61c
|
@ -1052,6 +1052,13 @@ _docker_network_connect() {
|
||||||
|
|
||||||
_docker_network_create() {
|
_docker_network_create() {
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
|
--aux-address|--gateway|--ip-range|--opt|-o|--subnet)
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
--ipam-driver)
|
||||||
|
COMPREPLY=( $( compgen -W "default" -- "$cur" ) )
|
||||||
|
return
|
||||||
|
;;
|
||||||
--driver|-d)
|
--driver|-d)
|
||||||
# no need to suggest drivers that allow one instance only
|
# no need to suggest drivers that allow one instance only
|
||||||
# (host, null)
|
# (host, null)
|
||||||
|
@ -1062,7 +1069,7 @@ _docker_network_create() {
|
||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
COMPREPLY=( $( compgen -W "--driver -d --help" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "--aux-address --driver -d --gateway --help --ip-range --ipam-driver --opt -o --subnet" -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue