mirror of https://github.com/docker/cli.git
Merge pull request #257 from albers/completion-service--network-add
Add bash completion for `service create|update --network-(add|rm)`
This commit is contained in:
commit
321c692868
|
@ -3155,6 +3155,8 @@ _docker_service_update_and_create() {
|
||||||
--host-add
|
--host-add
|
||||||
--host-rm
|
--host-rm
|
||||||
--image
|
--image
|
||||||
|
--network-add
|
||||||
|
--network-rm
|
||||||
--placement-pref-add
|
--placement-pref-add
|
||||||
--placement-pref-rm
|
--placement-pref-rm
|
||||||
--publish-add
|
--publish-add
|
||||||
|
@ -3181,6 +3183,10 @@ _docker_service_update_and_create() {
|
||||||
__docker_complete_image_repos_and_tags
|
__docker_complete_image_repos_and_tags
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
--network-add|--network-rm)
|
||||||
|
__docker_complete_networks
|
||||||
|
return
|
||||||
|
;;
|
||||||
--placement-pref-add|--placement-pref-rm)
|
--placement-pref-add|--placement-pref-rm)
|
||||||
COMPREPLY=( $( compgen -W "spread" -S = -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "spread" -S = -- "$cur" ) )
|
||||||
__docker_nospace
|
__docker_nospace
|
||||||
|
|
Loading…
Reference in New Issue