MCPcopy Index your code
hub / github.com/github/gh-aw / renderAuditDiffMarkdown

Function renderAuditDiffMarkdown

pkg/cli/audit_diff_render.go:35–44  ·  view source on GitHub ↗

renderAuditDiffMarkdown outputs audit diffs as markdown to stdout. Multiple diffs are separated by a horizontal rule.

(diffs []*AuditDiff)

Source from the content-addressed store, hash-verified

33// renderAuditDiffMarkdown outputs audit diffs as markdown to stdout.
34// Multiple diffs are separated by a horizontal rule.
35func 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.

Callers 1

RunAuditDiffFunction · 0.85

Calls 2

PrintfMethod · 0.45

Tested by

no test coverage detected