Install compose v1 and v2 alongside (#4203)

This commit is contained in:
Mikhail Timofeev
2021-10-01 12:33:34 +03:00
committed by GitHub
parent 9c5cf733d9
commit b665bad57b
5 changed files with 16 additions and 5 deletions

View File

@@ -63,9 +63,14 @@ function Get-CMakeVersion {
return "CMake $cmakeVersion"
}
function Get-DockerComposeVersion {
function Get-DockerComposeV1Version {
$composeVersion = docker-compose -v | Take-OutputPart -Part 2 | Take-OutputPart -Part 0 -Delimiter ","
return "Docker Compose $composeVersion"
return "Docker Compose v1 $composeVersion"
}
function Get-DockerComposeV2Version {
$composeVersion = docker compose version | Take-OutputPart -Part 3
return "Docker Compose v2 $composeVersion"
}
function Get-DockerMobyClientVersion {