Skip to content

Commit

Permalink
bash completion for docker-compose push
Browse files Browse the repository at this point in the history
Signed-off-by: Harald Albers <[email protected]>
  • Loading branch information
albers authored and aanand committed Jul 6, 2016
1 parent a3e30c3 commit 85e3ad2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions contrib/completion/bash/docker-compose
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
case "$prev" in
--timeout|-t)
Expand Down Expand Up @@ -480,6 +492,7 @@ _docker_compose() {
port
ps
pull
push
restart
rm
run
Expand Down

0 comments on commit 85e3ad2

Please sign in to comment.