From 5233533ee5ec34e99447ba5d00e324b05b0de27b Mon Sep 17 00:00:00 2001 From: fukusuket <41001169+fukusuket@users.noreply.github.com> Date: Fri, 21 Mar 2025 00:48:07 +0900 Subject: [PATCH] chg: Output horizontally --- WELA.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WELA.ps1 b/WELA.ps1 index 7169ea84..6800f1e4 100644 --- a/WELA.ps1 +++ b/WELA.ps1 @@ -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 ", "