mirror of https://github.com/docker/cli.git
bash completion for `service ps` supports multiple services
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
75249123b1
commit
548758fe31
|
@ -3242,10 +3242,7 @@ _docker_service_ps() {
|
|||
COMPREPLY=( $( compgen -W "--filter -f --format --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 New Issue