mirror of https://github.com/docker/compose.git
Support version command in Bash completion
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
417e8d80c3
commit
be92b79b42
|
@ -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