chg: Output horizontally

This commit is contained in:
fukusuket
2025-03-21 10:40:38 +09:00
parent f26a8bc6b2
commit 3a800ea1ed

View File

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