mirror of https://github.com/docker/compose.git
Merge pull request #2660 from albers/completion-down
bash completion for `docker-compose down`
This commit is contained in:
commit
842dc14417
|
@ -129,6 +129,22 @@ _docker_compose_docker_compose() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
_docker_compose_down() {
|
||||||
|
case "$prev" in
|
||||||
|
--rmi)
|
||||||
|
COMPREPLY=( $( compgen -W "all local" -- "$cur" ) )
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
case "$cur" in
|
||||||
|
-*)
|
||||||
|
COMPREPLY=( $( compgen -W "--help --rmi --volumes -v" -- "$cur" ) )
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
_docker_compose_events() {
|
_docker_compose_events() {
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
--json)
|
--json)
|
||||||
|
@ -393,6 +409,7 @@ _docker_compose() {
|
||||||
local commands=(
|
local commands=(
|
||||||
build
|
build
|
||||||
config
|
config
|
||||||
|
down
|
||||||
events
|
events
|
||||||
help
|
help
|
||||||
kill
|
kill
|
||||||
|
|
Loading…
Reference in New Issue