MCPcopy Create free account
hub / github.com/go-task/task / Write

Method Write

internal/output/prefixed.go:43–50  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

41}
42
43func (pw *prefixWriter) Write(p []byte) (int, error) {
44 n, err := pw.buff.Write(p)
45 if err != nil {
46 return n, err
47 }
48
49 return n, pw.writeOutputLines(false)
50}
51
52func (pw *prefixWriter) close() error {
53 return pw.writeOutputLines(true)

Callers

nothing calls this directly

Calls 1

writeOutputLinesMethod · 0.95

Tested by

no test coverage detected