Cleanup bash completion for `service create|update`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-12-25 06:04:43 -08:00 committed by Tibor Vass
parent 93ca1a3122
commit 73a5149c50
1 changed files with 5 additions and 9 deletions

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
;;