From be455538aa452efa086df9e1a44045bab59c7a00 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Sun, 4 Sep 2016 05:50:49 -0700 Subject: [PATCH] Add bash completion for `service {create,update} --group-{add,rm}` Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index cceb6663ea..0546d795c7 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -1735,6 +1735,7 @@ _docker_service_update() { --constraint --endpoint-mode --env -e + --group-add --label -l --limit-cpu --limit-memory @@ -1784,10 +1785,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 @@ -1806,6 +1812,10 @@ _docker_service_update() { __docker_nospace return ;; + --group-add) + COMPREPLY=( $(compgen -g -- "$cur") ) + return + ;; --log-driver) __docker_complete_log_drivers return