feat: verbose security

This commit is contained in:
fukusuket
2025-04-02 08:56:35 +09:00
parent 60610bb8a9
commit f89db1d68a

View File

@@ -231,6 +231,21 @@ System
- Recommended settings: Success and Failure
"@
Write-Host $msg
$msgLines = $msg -split "`n"
foreach ($line in $msgLines) {
if ($line -match "\$(\w+)") {
$parts = $line -split "(\$\w+)"
foreach ($part in $parts) {
if ($part -match "\$(\w+)") {
Write-Host -NoNewline $part -ForegroundColor Red
} else {
Write-Host -NoNewline $part
}
}
Write-Host ""
} else {
Write-Host $line
}
}
Write-Host ""
}