Skip to content

Commit

Permalink
fix: bugfix for output (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexsJones committed Mar 30, 2023
1 parent f4765be commit 172c2df
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cmd/analyze/analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,12 @@ var AnalyzeCmd = &cobra.Command{
}
fmt.Println(string(j))
default:
fmt.Printf("%s %s(%s): %s \n%s\n", color.CyanString("%d", n),
color.YellowString(analysis.Name), color.CyanString(analysis.ParentObject),
color.RedString(analysis.Error[0]), color.GreenString(analysis.Details))
fmt.Printf("%s %s(%s)\n", color.CyanString("%d", n),
color.YellowString(analysis.Name), color.CyanString(analysis.ParentObject))
for _, err := range analysis.Error {
fmt.Printf("- %s %s\n", color.RedString("Error:"), color.RedString(err))
}
color.GreenString(analysis.Details)
}
}
},
Expand Down

0 comments on commit 172c2df

Please sign in to comment.