Add bash completion for managing ports in services

Bash completion for

- `docker service create --port`
- `docker service update --port-{add,rm}`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-11-12 10:49:48 -08:00 committed by Tibor Vass
parent 0f6fa225d1
commit c9afee3afa
1 changed files with 3 additions and 0 deletions

View File

@ -2656,6 +2656,7 @@ _docker_service_update() {
--hostname --hostname
--mode --mode
--name --name
--port
" "
case "$prev" in case "$prev" in
@ -2687,6 +2688,8 @@ _docker_service_update() {
--group-add --group-add
--group-rm --group-rm
--image --image
--port-add
--port-rm
" "
case "$prev" in case "$prev" in