MCPcopy
hub / github.com/docker/compose / setPrefix

Method setPrefix

cmd/formatter/logs.go:156–162  ·  view source on GitHub ↗
(width int)

Source from the content-addressed store, hash-verified

154}
155
156func (p *presenter) setPrefix(width int) {
157 if p.name == api.WatchLogger {
158 p.prefix = p.colors(strings.Repeat(" ", width) + " ⦿ ")
159 return
160 }
161 p.prefix = p.colors(fmt.Sprintf("%-"+strconv.Itoa(width)+"s | ", p.name))
162}
163
164type logDecorator struct {
165 decorated api.LogConsumer

Callers 1

registerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected