Add bash completion for `docker-compose events`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-01-12 10:51:04 -08:00
parent 304a44aeab
commit 6c205a8e01
1 changed files with 19 additions and 0 deletions

View File

@ -133,6 +133,24 @@ _docker_compose_docker_compose() {
}
_docker_compose_events() {
case "$prev" in
--json)
return
;;
esac
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--help --json" -- "$cur" ) )
;;
*)
__docker_compose_services_all
;;
esac
}
_docker_compose_help() {
COMPREPLY=( $( compgen -W "${commands[*]}" -- "$cur" ) )
}
@ -379,6 +397,7 @@ _docker_compose() {
local commands=(
build
config
events
help
kill
logs