mirror of https://github.com/docker/cli.git
Cleanup bash completion for `service create|update`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
93ca1a3122
commit
73a5149c50
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue