mirror of https://github.com/docker/compose.git
Merge pull request #1507 from albers/completion-version
Support version command in Bash completion
This commit is contained in:
commit
036a4c4258
|
@ -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=()
|
||||
|
|
Loading…
Reference in New Issue