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

Function renderAuditDiffPretty

pkg/cli/audit_diff_render.go:48–57  ·  view source on GitHub ↗

renderAuditDiffPretty outputs audit diffs as formatted console output to stderr. Multiple diffs are separated by a visual divider.

(diffs []*AuditDiff)

Source from the content-addressed store, hash-verified

46// renderAuditDiffPretty outputs audit diffs as formatted console output to stderr.
47// Multiple diffs are separated by a visual divider.
48func renderAuditDiffPretty(diffs []*AuditDiff) {
49 auditDiffRenderLog.Printf("Rendering %d audit diff(s) as pretty output", len(diffs))
50 for i, diff := range diffs {
51 if i > 0 {
52 fmt.Fprintln(os.Stderr, strings.Repeat("─", 60))
53 fmt.Fprintln(os.Stderr)
54 }
55 renderSingleAuditDiffPretty(diff)
56 }
57}
58
59// renderSingleAuditDiffMarkdown outputs a single audit diff as markdown to stdout
60func renderSingleAuditDiffMarkdown(diff *AuditDiff) {

Callers 1

RunAuditDiffFunction · 0.85

Calls 2

PrintfMethod · 0.45

Tested by

no test coverage detected