mirror of https://github.com/docker/cli.git
Add bash completion for `network create --scope|--config-only|config-from`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
9689ccab1b
commit
22579ba56c
|
@ -2707,8 +2707,8 @@ _docker_network_create() {
|
|||
--aux-address|--gateway|--ip-range|--ipam-opt|--ipv6|--opt|-o|--subnet)
|
||||
return
|
||||
;;
|
||||
--ipam-driver)
|
||||
COMPREPLY=( $( compgen -W "default" -- "$cur" ) )
|
||||
--config-from)
|
||||
__docker_complete_networks
|
||||
return
|
||||
;;
|
||||
--driver|-d)
|
||||
|
@ -2716,14 +2716,22 @@ _docker_network_create() {
|
|||
__docker_complete_plugins_bundled --type Network --remove host --remove null --add macvlan
|
||||
return
|
||||
;;
|
||||
--ipam-driver)
|
||||
COMPREPLY=( $( compgen -W "default" -- "$cur" ) )
|
||||
return
|
||||
;;
|
||||
--label)
|
||||
return
|
||||
;;
|
||||
--scope)
|
||||
COMPREPLY=( $( compgen -W "local swarm" -- "$cur" ) )
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$cur" in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W "--attachable --aux-address --driver -d --gateway --help --ingress --internal --ip-range --ipam-driver --ipam-opt --ipv6 --label --opt -o --subnet" -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "--attachable --aux-address --config-from --config-only --driver -d --gateway --help --ingress --internal --ip-range --ipam-driver --ipam-opt --ipv6 --label --opt -o --scope --subnet" -- "$cur" ) )
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue