bash completion for `docker-compose push`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-06-22 17:19:20 +02:00 committed by Aanand Prasad
parent a3e30c3eed
commit 85e3ad2655
1 changed files with 13 additions and 0 deletions

View File

@ -316,6 +316,18 @@ _docker_compose_pull() {
} }
_docker_compose_push() {
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--help --ignore-push-failures" -- "$cur" ) )
;;
*)
__docker_compose_services_all
;;
esac
}
_docker_compose_restart() { _docker_compose_restart() {
case "$prev" in case "$prev" in
--timeout|-t) --timeout|-t)
@ -480,6 +492,7 @@ _docker_compose() {
port port
ps ps
pull pull
push
restart restart
rm rm
run run