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