Merge pull request #29691 from albers/completion-service-create-cleanup
Cleanup bash completion for `service create|update`
This commit is contained in:
commit
7d8a9b9234
1 changed files with 5 additions and 9 deletions
|
@ -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 a new issue