mirror of https://github.com/docker/cli.git
Add bash completion for `service create|update --network-(add|rm)`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
2eac0bb7b7
commit
fa0f470a5f
|
@ -3154,6 +3154,8 @@ _docker_service_update_and_create() {
|
|||
--host-add
|
||||
--host-rm
|
||||
--image
|
||||
--network-add
|
||||
--network-rm
|
||||
--placement-pref-add
|
||||
--placement-pref-rm
|
||||
--publish-add
|
||||
|
@ -3180,6 +3182,10 @@ _docker_service_update_and_create() {
|
|||
__docker_complete_image_repos_and_tags
|
||||
return
|
||||
;;
|
||||
--network-add|--network-rm)
|
||||
__docker_complete_networks
|
||||
return
|
||||
;;
|
||||
--placement-pref-add|--placement-pref-rm)
|
||||
COMPREPLY=( $( compgen -W "spread" -S = -- "$cur" ) )
|
||||
__docker_nospace
|
||||
|
|
Loading…
Reference in New Issue