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

Method Print

internal/output/output.go:314–331  ·  view source on GitHub ↗

Print prints an Outputs instance

(out io.Writer)

Source from the content-addressed store, hash-verified

312
313// Print prints an Outputs instance
314func (o Outputs) Print(out io.Writer) error {
315 fmt.Fprint(out, "[")
316 first := true
317 for _, output := range o {
318 if first {
319 fmt.Fprint(out, "\n\t")
320 } else {
321 fmt.Fprint(out, "\t,")
322 }
323 first = false
324 err := output.print(out, "\t")
325 if err != nil {
326 return err
327 }
328 }
329 fmt.Fprint(out, "]\n")
330 return nil
331}
332
333// wrapCosignErrorMessage wraps the message from the given error indicating the
334// type of check that was performed. It may also completely change the message

Callers 1

Calls 1

printMethod · 0.80

Tested by 1