Add bash completion for docker-compose events
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
304a44aeab
commit
6c205a8e01
1 changed files with 19 additions and 0 deletions
|
|
@ -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() {
|
_docker_compose_help() {
|
||||||
COMPREPLY=( $( compgen -W "${commands[*]}" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "${commands[*]}" -- "$cur" ) )
|
||||||
}
|
}
|
||||||
|
|
@ -379,6 +397,7 @@ _docker_compose() {
|
||||||
local commands=(
|
local commands=(
|
||||||
build
|
build
|
||||||
config
|
config
|
||||||
|
events
|
||||||
help
|
help
|
||||||
kill
|
kill
|
||||||
logs
|
logs
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue