[windows] Add Kotlin (#3784)

This commit is contained in:
mikhailshaganov
2021-08-04 12:19:55 +03:00
committed by GitHub
parent 33004045dd
commit 5ece292613
5 changed files with 17 additions and 1 deletions

View File

@@ -78,6 +78,11 @@ function Get-GoVersion {
return "Go $goVersion"
}
function Get-KotlinVersion {
$kotlinVersion = $((cmd /c "kotlinc -version 2>&1") | Out-String).split(" ")[2]
return "Kotlin $kotlinVersion"
}
function Get-PHPVersion {
($(php --version) | Out-String) -match "PHP (?<version>\d+\.\d+\.\d+)" | Out-Null
$phpVersion = $Matches.Version