MCPcopy Create free account
hub / github.com/github/gh-aw / renderAuditOutput

Function renderAuditOutput

pkg/cli/audit.go:845–857  ·  view source on GitHub ↗
(auditData AuditData, runOutputDir string, jsonOutput, verbose bool)

Source from the content-addressed store, hash-verified

843}
844
845func renderAuditOutput(auditData AuditData, runOutputDir string, jsonOutput, verbose bool) error {
846 if jsonOutput {
847 if err := renderJSON(auditData); err != nil {
848 return fmt.Errorf("failed to render JSON output: %w", err)
849 }
850 return nil
851 }
852 renderConsole(auditData, runOutputDir)
853 if verbose {
854 auditLog.Printf("Rendered console audit report for %s", runOutputDir)
855 }
856 return nil
857}
858
859func renderAuditGatewayMetrics(runOutputDir string, verbose bool) {
860 gatewayMetrics, err := parseGatewayLogs(runOutputDir, verbose)

Callers 1

renderAuditReportFunction · 0.85

Calls 4

renderJSONFunction · 0.85
renderConsoleFunction · 0.85
ErrorfMethod · 0.45
PrintfMethod · 0.45

Tested by

no test coverage detected