renderAuditDiffMarkdown outputs audit diffs as markdown to stdout. Multiple diffs are separated by a horizontal rule.
(diffs []*AuditDiff)
| 33 | // renderAuditDiffMarkdown outputs audit diffs as markdown to stdout. |
| 34 | // Multiple diffs are separated by a horizontal rule. |
| 35 | func renderAuditDiffMarkdown(diffs []*AuditDiff) { |
| 36 | auditDiffRenderLog.Printf("Rendering %d audit diff(s) as markdown", len(diffs)) |
| 37 | for i, diff := range diffs { |
| 38 | if i > 0 { |
| 39 | fmt.Fprintln(os.Stdout, "---") |
| 40 | fmt.Fprintln(os.Stdout) |
| 41 | } |
| 42 | renderSingleAuditDiffMarkdown(diff) |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | // renderAuditDiffPretty outputs audit diffs as formatted console output to stderr. |
| 47 | // Multiple diffs are separated by a visual divider. |
no test coverage detected