MCPcopy
hub / github.com/go-task/task / NewPrefixed

Function NewPrefixed

internal/output/prefixed.go:21–29  ·  view source on GitHub ↗
(logger *logger.Logger)

Source from the content-addressed store, hash-verified

19}
20
21func NewPrefixed(logger *logger.Logger) *Prefixed {
22 var counter uint
23
24 return &Prefixed{
25 seen: make(map[string]uint),
26 counter: &counter,
27 logger: logger,
28 }
29}
30
31func (p *Prefixed) WrapWriter(stdOut, _ io.Writer, prefix string, _ *templater.Cache) (io.Writer, io.Writer, CloseFunc) {
32 pw := &prefixWriter{writer: stdOut, prefix: prefix, prefixed: p}

Callers 3

TestPrefixedFunction · 0.92
TestPrefixedWithColorFunction · 0.92
BuildForFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestPrefixedFunction · 0.74
TestPrefixedWithColorFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…