Support multiple services on bash completion for `docker service ps`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2017-01-03 05:58:13 -08:00 committed by Tibor Vass
parent a004c15df0
commit ce569fd836
1 changed files with 1 additions and 4 deletions

View File

@ -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
}