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

Function setupSimpleReport

diff/report.go:180–188  ·  view source on GitHub ↗

setup report for simple output.

(r *Report)

Source from the content-addressed store, hash-verified

178
179// setup report for simple output.
180func setupSimpleReport(r *Report) {
181 r.format.output = printSimpleReport
182 r.format.changestyles = make(map[string]ChangeStyle)
183 r.format.changestyles["ADD"] = ChangeStyle{color: "green", message: "to be added."}
184 r.format.changestyles["REMOVE"] = ChangeStyle{color: "red", message: "to be removed."}
185 r.format.changestyles["MODIFY"] = ChangeStyle{color: "yellow", message: "to be changed."}
186 r.format.changestyles["OWNERSHIP"] = ChangeStyle{color: "magenta", message: "to change ownership."}
187 r.format.changestyles["MODIFY_SUPPRESSED"] = ChangeStyle{color: "blue+h", message: "has changed, but diff is empty after suppression."}
188}
189
190// print report for simple output
191func printSimpleReport(r *Report, to io.Writer) {

Callers 1

setupReportFormatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected