MCPcopy
hub / github.com/pterm/pterm / WithStyle

Method WithStyle

basic_text_printer.go:21–24  ·  view source on GitHub ↗

WithStyle adds a style to the printer.

(style *Style)

Source from the content-addressed store, hash-verified

19
20// WithStyle adds a style to the printer.
21func (p BasicTextPrinter) WithStyle(style *Style) *BasicTextPrinter {
22 p.Style = style
23 return &p
24}
25
26func (p BasicTextPrinter) WithWriter(writer io.Writer) *BasicTextPrinter {
27 p.Writer = writer

Callers 1

Calls

no outgoing calls

Tested by 1