Merge pull request #1507 from albers/completion-version

Support version command in Bash completion
This commit is contained in:
Aanand Prasad 2015-06-04 15:46:50 +01:00
commit 036a4c4258
1 changed files with 10 additions and 0 deletions

View File

@ -302,6 +302,15 @@ _docker-compose_up() {
}
_docker-compose_version() {
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--short" -- "$cur" ) )
;;
esac
}
_docker-compose() {
local previous_extglob_setting=$(shopt -p extglob)
shopt -s extglob
@ -322,6 +331,7 @@ _docker-compose() {
start
stop
up
version
)
COMPREPLY=()