mirror of https://github.com/docker/cli.git
Add bash completion for `docker service ps --filter node`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
f75cb34afa
commit
046aa9aa23
|
@ -2710,11 +2710,15 @@ _docker_service_ps() {
|
||||||
__docker_complete_services --cur "${cur##*=}" --name
|
__docker_complete_services --cur "${cur##*=}" --name
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
node)
|
||||||
|
__docker_complete_nodes_plus_self --cur "${cur##*=}"
|
||||||
|
return
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
--filter|-f)
|
--filter|-f)
|
||||||
COMPREPLY=( $( compgen -W "desired-state id name" -S = -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "desired-state id name node" -S = -- "$cur" ) )
|
||||||
__docker_nospace
|
__docker_nospace
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue