Skip to content

Commit

Permalink
Change in results output wording (#164)
Browse files Browse the repository at this point in the history
* OK -> VALID and FAIL -> VIOLATION
This change will make the output more readable
  • Loading branch information
danielmarzini authored Jan 18, 2024
1 parent d51e694 commit 5e5e9a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/outputs/console_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ func (p *consoleResultCollector) Close() error {
p.out.ColorPrintf("%s [bold][light_gray][%s][yellow] %s[reset]: %s\n", IconMagnifier, policy.PolicyGroup, policy.PolicyName, policyTitle)

for _, evaluation := range policy.ClusterEvaluations {
statusString := "[ \033[1m\033[32mOK\033[0m ]"
statusString := "[ \033[1m\033[32mVALID\033[0m ]"
if !evaluation.Valid {
statusString = "[\033[1m\033[31mFAIL\033[0m]"
statusString = "[\033[1m\033[31mINVALID\033[0m]"
}
p.out.TabPrintf(" - %s\t"+statusString+"\n", evaluation.ClusterID)
if !evaluation.Valid {
Expand Down

0 comments on commit 5e5e9a5

Please sign in to comment.