1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #31339 from albers/completion-service-ps--only-one-service

Bash completion for `docker service ps` completes only one service
This commit is contained in:
Vincent Demeester 2017-03-02 11:21:17 +01:00 committed by GitHub
commit 3b5d8e6a8d

View file

@ -2945,7 +2945,10 @@ _docker_service_ps() {
COMPREPLY=( $( compgen -W "--filter -f --help --no-resolve --no-trunc --quiet -q" -- "$cur" ) )
;;
*)
__docker_complete_services
local counter=$(__docker_pos_first_nonflag '--filter|-f')
if [ $cword -eq $counter ]; then
__docker_complete_services
fi
;;
esac
}