зеркало из https://github.com/microsoft/docker.git
Merge pull request #24791 from albers/completion-node-update-labels
bash completion for `docker node update --label-{add,rm}`
This commit is contained in:
Коммит
be2e2fca08
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче