MCPcopy Create free account
hub / github.com/conforma/cli / print

Method print

internal/output/output.go:299–308  ·  view source on GitHub ↗
(out io.Writer, indent string)

Source from the content-addressed store, hash-verified

297}
298
299func (o *Output) print(out io.Writer, indent string) error {
300 e := json.NewEncoder(out)
301 e.SetIndent(indent, "\t")
302 err := e.Encode(o)
303 if err != nil {
304 return fmt.Errorf("marshal json: %w", err)
305 }
306
307 return nil
308}
309
310// Outputs is an array of Output
311type Outputs []*Output

Callers 2

PrintMethod · 0.95
PrintMethod · 0.80

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected