Merge pull request #395 from albers/completion-service-ps-multiple

bash completion for `service ps` supports multiple services
This commit is contained in:
Kenfe-Mickaël Laventure 2017-08-02 18:16:02 +02:00 committed by GitHub
commit c4d705fa7f
1 changed files with 1 additions and 4 deletions

View File

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