mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-06 17:22:50 +01:00
chg: Output horizontally
This commit is contained in:
2
WELA.ps1
2
WELA.ps1
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user