MCPcopy Index your code
hub / github.com/databus23/helm-diff / printDiffReport

Function printDiffReport

diff/report.go:167–177  ·  view source on GitHub ↗

print report for default output: diff

(r *Report, to io.Writer)

Source from the content-addressed store, hash-verified

165
166// print report for default output: diff
167func printDiffReport(r *Report, to io.Writer) {
168 for _, entry := range r.Entries {
169 _, _ = fmt.Fprintf(
170 to,
171 ansi.Color("%s %s", r.format.changestyles[entry.ChangeType].color)+"\n",
172 entry.Key,
173 r.format.changestyles[entry.ChangeType].message,
174 )
175 printDiffRecords(entry.SuppressedKinds, entry.Kind, entry.Context, entry.Diffs, to)
176 }
177}
178
179// setup report for simple output.
180func setupSimpleReport(r *Report) {

Callers

nothing calls this directly

Calls 1

printDiffRecordsFunction · 0.85

Tested by

no test coverage detected