From aa276a5379b3d24a8e7a1f8b1193832df5a46220 Mon Sep 17 00:00:00 2001 From: Peter Pan Date: Sun, 21 Apr 2024 04:11:02 +0800 Subject: [PATCH] feat: add Resource Kind in output (#1069) Signed-off-by: Peter Pan Co-authored-by: Aris Boutselis Co-authored-by: Alex Jones --- pkg/analysis/output.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/analysis/output.go b/pkg/analysis/output.go index b638b93bb0..d599671a04 100644 --- a/pkg/analysis/output.go +++ b/pkg/analysis/output.go @@ -78,8 +78,10 @@ func (a *Analysis) textOutput() ([]byte, error) { return []byte(output.String()), nil } for n, result := range a.Results { - output.WriteString(fmt.Sprintf("%s %s(%s)\n", color.CyanString("%d", n), - color.YellowString(result.Name), color.CyanString(result.ParentObject))) + output.WriteString(fmt.Sprintf("%s: %s %s(%s)\n", color.CyanString("%d", n), + color.HiYellowString(result.Kind), + color.YellowString(result.Name), + color.CyanString(result.ParentObject))) for _, err := range result.Error { output.WriteString(fmt.Sprintf("- %s %s\n", color.RedString("Error:"), color.RedString(err.Text))) if err.KubernetesDoc != "" {