chg: Output horizontally

This commit is contained in:
fukusuket
2025-03-21 10:41:29 +09:00
parent 3a800ea1ed
commit ec88eff4db

View File

@@ -108,7 +108,7 @@ function CalculateTotalUsableRate {
function ShowRulesCountsByLevel { function ShowRulesCountsByLevel {
param ($usableRate, $msg, $colorMsg) param ($usableRate, $msg, $colorMsg)
Write-Host -NoNewline $msg Write-Host -NoNewline $msg
$color = if ($colorMsg -match "Disabled") { "Red" } elseif ($colorMsg -match "Partially") { "DarkYellow" } else { "White" } $color = if ($colorMsg -match "Disabled") { "Red" } elseif ($colorMsg -match "Partially") { "DarkYellow" } else { "Green" }
Write-Host "$colorMsg" -ForegroundColor $color Write-Host "$colorMsg" -ForegroundColor $color
$levelColorMap = [ordered]@{ $levelColorMap = [ordered]@{
"critical" = "Red" "critical" = "Red"