Merge pull request #29691 from albers/completion-service-create-cleanup

Cleanup bash completion for `service create|update`
This commit is contained in:
Akihiro Suda 2016-12-26 14:56:54 +09:00 committed by GitHub
commit 7d8a9b9234

View file

@ -2765,6 +2765,10 @@ _docker_service_update() {
_filedir
return
;;
--group)
COMPREPLY=( $(compgen -g -- "$cur") )
return
;;
--host)
case "$cur" in
*:)
@ -2781,10 +2785,6 @@ _docker_service_update() {
__docker_complete_secrets
return
;;
--group)
COMPREPLY=( $(compgen -g -- "$cur") )
return
;;
esac
fi
if [ "$subcommand" = "update" ] ; then
@ -2810,11 +2810,7 @@ _docker_service_update() {
"
case "$prev" in
--group-add)
COMPREPLY=( $(compgen -g -- "$cur") )
return
;;
--group-rm)
--group-add|--group-rm)
COMPREPLY=( $(compgen -g -- "$cur") )
return
;;