Add bash completion for missing filters of docker node ls
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
87e45626f4
commit
23b0c39fa6
1 changed files with 9 additions and 1 deletions
|
@ -3342,15 +3342,23 @@ _docker_node_ls() {
|
||||||
__docker_complete_nodes --cur "${cur##*=}" --id
|
__docker_complete_nodes --cur "${cur##*=}" --id
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
membership)
|
||||||
|
COMPREPLY=( $( compgen -W "accepted pending" -- "${cur##*=}" ) )
|
||||||
|
return
|
||||||
|
;;
|
||||||
name)
|
name)
|
||||||
__docker_complete_nodes --cur "${cur##*=}" --name
|
__docker_complete_nodes --cur "${cur##*=}" --name
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
role)
|
||||||
|
COMPREPLY=( $( compgen -W "manager worker" -- "${cur##*=}" ) )
|
||||||
|
return
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
--filter|-f)
|
--filter|-f)
|
||||||
COMPREPLY=( $( compgen -W "id label name" -S = -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "id label membership name role" -S = -- "$cur" ) )
|
||||||
__docker_nospace
|
__docker_nospace
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue