From 7d32d124f4f572420928c50657a58be29eaaf2d6 Mon Sep 17 00:00:00 2001 From: Stepan Stipl Date: Thu, 31 Dec 2020 11:21:30 +0000 Subject: [PATCH] feat: Add replace api version and since to text output Fixes #5 --- pkg/printer/text.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/printer/text.go b/pkg/printer/text.go index 5482ad63..dba301e6 100644 --- a/pkg/printer/text.go +++ b/pkg/printer/text.go @@ -46,9 +46,9 @@ func (c *TextPrinter) Print(results []judge.Result) error { fmt.Fprintf(w, "%s\n", strings.Repeat("_", 90)) fmt.Fprintf(w, ">>> %s <<<\n", ruleSet) fmt.Fprintf(w, "%s\n", strings.Repeat("-", 90)) - fmt.Fprintf(w, "%s\t%s\t%s\t%s\t\n", "KIND", "NAMESPACE", "NAME", "API_VERSION") + fmt.Fprintf(w, "%s\t%s\t%s\t%s\t%s (%s)\n", "KIND", "NAMESPACE", "NAME", "API_VERSION", "REPLACE_WITH", "SINCE") } - fmt.Fprintf(w, "%s\t%s\t%s\t%s\t\n", r.Kind, r.Namespace, r.Name, r.ApiVersion) + fmt.Fprintf(w, "%s\t%s\t%s\t%s\t%s (%s+)\n", r.Kind, r.Namespace, r.Name, r.ApiVersion, r.ReplaceWith, r.Since) } w.Flush() return nil