Merge pull request #31915 from albers/fix-completion-node-update
Bash completion for `docker node update` completes only one node
This commit is contained in:
commit
1ed277a268
1 changed files with 5 additions and 1 deletions
|
@ -3526,7 +3526,11 @@ _docker_node_update() {
|
||||||
COMPREPLY=( $( compgen -W "--availability --help --label-add --label-rm --role" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "--availability --help --label-add --label-rm --role" -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
__docker_complete_nodes
|
local counter=$(__docker_pos_first_nonflag '--availability|--label-add|--label-rm|--role')
|
||||||
|
if [ $cword -eq $counter ]; then
|
||||||
|
__docker_complete_nodes
|
||||||
|
fi
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue