зеркало из https://github.com/microsoft/docker.git
bash completion for new `docker network create` options
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Родитель
ef49d127e3
Коммит
5013a2fbd6
|
@ -1054,6 +1054,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)
|
||||||
|
@ -1064,7 +1071,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
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче