bash completion for `docker node update --label-{add,rm}`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-07-19 13:09:28 +02:00 committed by Tibor Vass
parent cbaa143737
commit 56491f1caa
1 changed files with 4 additions and 1 deletions

View File

@ -2080,11 +2080,14 @@ _docker_node_update() {
COMPREPLY=( $( compgen -W "manager worker" -- "$cur" ) )
return
;;
--label-add|--label-rm)
return
;;
esac
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--availability --help --membership --role" -- "$cur" ) )
COMPREPLY=( $( compgen -W "--availability --help --label-add --label-rm --membership --role" -- "$cur" ) )
;;
*)
__docker_complete_nodes