MCPcopy
hub / github.com/pterm/pterm / WithScope

Method WithScope

prefix_printer.go:107–110  ·  view source on GitHub ↗

WithScope adds a scope to the Prefix.

(scope Scope)

Source from the content-addressed store, hash-verified

105
106// WithScope adds a scope to the Prefix.
107func (p PrefixPrinter) WithScope(scope Scope) *PrefixPrinter {
108 p.Scope = scope
109 return &p
110}
111
112// WithMessageStyle adds a custom prefix to the printer.
113func (p PrefixPrinter) WithMessageStyle(style *Style) *PrefixPrinter {

Callers 2

Calls

no outgoing calls

Tested by 2