mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Support multiple services on bash completion for docker service ps
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
884a1c2263
commit
3f5d11c9bf
1 changed files with 1 additions and 4 deletions
|
@ -2689,10 +2689,7 @@ _docker_service_ps() {
|
|||
COMPREPLY=( $( compgen -W "--filter -f --help --no-resolve --no-trunc --quiet -q" -- "$cur" ) )
|
||||
;;
|
||||
*)
|
||||
local counter=$(__docker_pos_first_nonflag '--filter|-f')
|
||||
if [ $cword -eq $counter ]; then
|
||||
__docker_complete_services
|
||||
fi
|
||||
__docker_complete_services
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue