mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add bash completion for docker service ps --filter node
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
8bb8ac7f78
commit
a39a2bb6c2
1 changed files with 5 additions and 1 deletions
|
@ -2710,11 +2710,15 @@ _docker_service_ps() {
|
|||
__docker_complete_services --cur "${cur##*=}" --name
|
||||
return
|
||||
;;
|
||||
node)
|
||||
__docker_complete_nodes_plus_self --cur "${cur##*=}"
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$prev" in
|
||||
--filter|-f)
|
||||
COMPREPLY=( $( compgen -W "desired-state id name" -S = -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "desired-state id name node" -S = -- "$cur" ) )
|
||||
__docker_nospace
|
||||
return
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue