Merge pull request #26301 from albers/completion-service-groups
Add bash completion for `service {create,update} --group-{add,rm}`
This commit is contained in:
commit
5ada5f129f
1 changed files with 10 additions and 0 deletions
|
@ -1736,6 +1736,7 @@ _docker_service_update() {
|
|||
--constraint
|
||||
--endpoint-mode
|
||||
--env -e
|
||||
--group-add
|
||||
--label -l
|
||||
--limit-cpu
|
||||
--limit-memory
|
||||
|
@ -1785,10 +1786,15 @@ _docker_service_update() {
|
|||
--arg
|
||||
--container-label-add
|
||||
--container-label-rm
|
||||
--group-rm
|
||||
--image
|
||||
"
|
||||
|
||||
case "$prev" in
|
||||
--group-rm)
|
||||
COMPREPLY=( $(compgen -g -- "$cur") )
|
||||
return
|
||||
;;
|
||||
--image)
|
||||
__docker_complete_image_repos_and_tags
|
||||
return
|
||||
|
@ -1807,6 +1813,10 @@ _docker_service_update() {
|
|||
__docker_nospace
|
||||
return
|
||||
;;
|
||||
--group-add)
|
||||
COMPREPLY=( $(compgen -g -- "$cur") )
|
||||
return
|
||||
;;
|
||||
--log-driver)
|
||||
__docker_complete_log_drivers
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue