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

Function renderPrettyDomainInventory

pkg/cli/audit_cross_run_render.go:308–319  ·  view source on GitHub ↗
(report *CrossRunAuditReport)

Source from the content-addressed store, hash-verified

306}
307
308func renderPrettyDomainInventory(report *CrossRunAuditReport) {
309 if len(report.DomainInventory) == 0 {
310 return
311 }
312 fmt.Fprintln(os.Stderr, console.FormatInfoMessage(fmt.Sprintf("Domain Inventory (%d domains)", len(report.DomainInventory))))
313 for _, entry := range report.DomainInventory {
314 fmt.Fprintf(os.Stderr, " %s %-45s %s seen=%d/%d allowed=%d blocked=%d\n",
315 firewallStatusEmoji(entry.OverallStatus), entry.Domain, entry.OverallStatus,
316 entry.SeenInRuns, report.RunsAnalyzed, entry.TotalAllowed, entry.TotalBlocked)
317 }
318 fmt.Fprintln(os.Stderr)
319}
320
321func renderPrettyDrain3Insights(insights []ObservabilityInsight) {
322 if len(insights) == 0 {

Callers 1

Calls 2

FormatInfoMessageFunction · 0.92
firewallStatusEmojiFunction · 0.85

Tested by

no test coverage detected