Skip to content

Commit

Permalink
feat: Add replace api version and since to text output
Browse files Browse the repository at this point in the history
Fixes #5
  • Loading branch information
stepanstipl committed Dec 31, 2020
1 parent b0280b1 commit 7d32d12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/printer/text.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d32d12

Please sign in to comment.