Skip to content

Commit aa276a5

Browse files
panpan0000arbreezyAlexsJones
authored
feat: add Resource Kind in output (#1069)
Signed-off-by: Peter Pan <[email protected]> Co-authored-by: Aris Boutselis <[email protected]> Co-authored-by: Alex Jones <[email protected]>
1 parent eb7687a commit aa276a5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/analysis/output.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ func (a *Analysis) textOutput() ([]byte, error) {
7878
return []byte(output.String()), nil
7979
}
8080
for n, result := range a.Results {
81-
output.WriteString(fmt.Sprintf("%s %s(%s)\n", color.CyanString("%d", n),
82-
color.YellowString(result.Name), color.CyanString(result.ParentObject)))
81+
output.WriteString(fmt.Sprintf("%s: %s %s(%s)\n", color.CyanString("%d", n),
82+
color.HiYellowString(result.Kind),
83+
color.YellowString(result.Name),
84+
color.CyanString(result.ParentObject)))
8385
for _, err := range result.Error {
8486
output.WriteString(fmt.Sprintf("- %s %s\n", color.RedString("Error:"), color.RedString(err.Text)))
8587
if err.KubernetesDoc != "" {

0 commit comments

Comments
 (0)