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:
Sebastiaan van Stijn 2017-06-30 01:11:22 -07:00 committed by GitHub
commit 321c692868
1 changed files with 6 additions and 0 deletions

View File

@ -3155,6 +3155,8 @@ _docker_service_update_and_create() {
--host-add
--host-rm
--image
--network-add
--network-rm
--placement-pref-add
--placement-pref-rm
--publish-add
@ -3181,6 +3183,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