chg: Output horizontally

This commit is contained in:
fukusuket
2025-03-21 00:48:07 +09:00
parent 6f716312fc
commit 5233533ee5

View File

@@ -96,9 +96,10 @@ function ShowRulesCountsByLevel {
"informational" = "White" # Assuming a default color for informational
}
$i = 0
Write-Host -NoNewline " - "
$usableRate | Sort-Object { $levelColorMap.Keys.IndexOf($_.Level) } | ForEach-Object {
$color = $levelColorMap[$_.Level]
Write-Host -NoNewline " - $($_.Level) rules: $($_.UsableCount) / $($_.TotalCount) ($($_.Percentage)%)" -ForegroundColor $color
Write-Host -NoNewline "$($_.Level) rules: $($_.UsableCount) / $($_.TotalCount) ($($_.Percentage)%)" -ForegroundColor $color
if ($i -lt $usableRate.Count - 1)
{
Write-Host -NoNewline ", "