Bash completion for `docker service ps` completes only one service

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2017-02-24 16:50:00 +01:00 committed by Tibor Vass
parent 8e7dd976f8
commit 85db624317
1 changed files with 4 additions and 1 deletions

View File

@ -2945,7 +2945,10 @@ _docker_service_ps() {
COMPREPLY=( $( compgen -W "--filter -f --help --no-resolve --no-trunc --quiet -q" -- "$cur" ) ) 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 __docker_complete_services
fi
;; ;;
esac esac
} }