[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 $ghcVersion = Run-Command "ghc --version" | Take-Part -Part 7
$cabalVersion = Run-Command "cabal --version" | Take-Part -Part 3 $cabalVersion = Run-Command "cabal --version" | Take-Part -Part 3
$stackVersion = Run-Command "stack --version" | Take-Part -Part 1 | ForEach-Object {$_.replace(",","")} $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-MDHeader "Tools" -Level 3
$markdown += New-MDList -Style Unordered -NoNewLine -Lines @( $markdown += New-MDList -Style Unordered -NoNewLine -Lines @(
@@ -204,7 +205,8 @@ $markdown += New-MDList -Style Unordered -NoNewLine -Lines @(
"AWS CLI ${awsVersion}", "AWS CLI ${awsVersion}",
"AWS SAM CLI ${awsSamVersion}", "AWS SAM CLI ${awsSamVersion}",
"AWS Session Manager CLI ${awsSessionManagerVersion}", "AWS Session Manager CLI ${awsSessionManagerVersion}",
"Aliyun CLI ${aliyunVersion}" "Aliyun CLI ${aliyunVersion}",
"Xcode Command Line Tools ${xcodeVersion}"
) )
if( -not $os.IsHighSierra) { if( -not $os.IsHighSierra) {
@@ -323,4 +325,4 @@ if (-not (Test-Path $OutputDirectory)) { New-Item -Path $OutputDirectory -ItemTy
# #
Write-Host $markdownExtended Write-Host $markdownExtended
$systemInfo | Out-File -FilePath "${OutputDirectory}/systeminfo.txt" -Encoding UTF8NoBOM $systemInfo | Out-File -FilePath "${OutputDirectory}/systeminfo.txt" -Encoding UTF8NoBOM
$markdown | Out-File -FilePath "${OutputDirectory}/systeminfo.md" -Encoding UTF8NoBOM $markdown | Out-File -FilePath "${OutputDirectory}/systeminfo.md" -Encoding UTF8NoBOM

View File

@@ -244,4 +244,4 @@ function Build-XcodeSupportToolsSection {
$output += New-MDHeader "Xcode Support Tools" -Level 4 $output += New-MDHeader "Xcode Support Tools" -Level 4
$output += New-MDList -Style Unordered -Lines $toolList $output += New-MDList -Style Unordered -Lines $toolList
return $output return $output
} }