[macos] Add Xcode command line tools version (#2205)

This commit is contained in:
Sergey Dolin
2020-12-10 13:15:39 +05:00
committed by GitHub
parent b5a45214f5
commit 7775dfb021
2 changed files with 5 additions and 3 deletions

View File

@@ -194,6 +194,7 @@ $ghcUpVersion = Run-Command "ghcup --version" | Take-Part -Part 5
$ghcVersion = Run-Command "ghc --version" | Take-Part -Part 7
$cabalVersion = Run-Command "cabal --version" | Take-Part -Part 3
$stackVersion = Run-Command "stack --version" | Take-Part -Part 1 | ForEach-Object {$_.replace(",","")}
$xcodeVersion = Run-Command "pkgutil --pkg-info com.apple.pkg.CLTools_Executables" | Select -Index 1 | Take-Part -Part 1
$markdown += New-MDHeader "Tools" -Level 3
$markdown += New-MDList -Style Unordered -NoNewLine -Lines @(
@@ -204,7 +205,8 @@ $markdown += New-MDList -Style Unordered -NoNewLine -Lines @(
"AWS CLI ${awsVersion}",
"AWS SAM CLI ${awsSamVersion}",
"AWS Session Manager CLI ${awsSessionManagerVersion}",
"Aliyun CLI ${aliyunVersion}"
"Aliyun CLI ${aliyunVersion}",
"Xcode Command Line Tools ${xcodeVersion}"
)
if( -not $os.IsHighSierra) {