MCPcopy
hub / github.com/pterm/pterm / WithPrefix

Method WithPrefix

prefix_printer.go:101–104  ·  view source on GitHub ↗

WithPrefix adds a custom prefix to the printer.

(prefix Prefix)

Source from the content-addressed store, hash-verified

99
100// WithPrefix adds a custom prefix to the printer.
101func (p PrefixPrinter) WithPrefix(prefix Prefix) *PrefixPrinter {
102 p.Prefix = prefix
103 return &p
104}
105
106// WithScope adds a scope to the Prefix.
107func (p PrefixPrinter) WithScope(scope Scope) *PrefixPrinter {

Callers 2

Calls

no outgoing calls

Tested by 2