MCPcopy Create free account
hub / github.com/Facets-cloud/flow / writeCard

Function writeCard

internal/app/card.go:90–97  ·  view source on GitHub ↗

writeCard renders the HTML card to a file.

(path string, s stats.Stats)

Source from the content-addressed store, hash-verified

88
89// writeCard renders the HTML card to a file.
90func writeCard(path string, s stats.Stats) error {
91 f, err := os.Create(path)
92 if err != nil {
93 return err
94 }
95 defer f.Close()
96 return renderCardHTML(f, s)
97}

Callers 2

TestWriteCardFunction · 0.85
cmdStatsFunction · 0.85

Calls 1

renderCardHTMLFunction · 0.85

Tested by 1

TestWriteCardFunction · 0.68