MCPcopy
hub / github.com/pterm/pterm / WithTextStyle

Method WithTextStyle

header_printer.go:35–38  ·  view source on GitHub ↗

WithTextStyle returns a new HeaderPrinter with changed

(style *Style)

Source from the content-addressed store, hash-verified

33
34// WithTextStyle returns a new HeaderPrinter with changed
35func (p HeaderPrinter) WithTextStyle(style *Style) *HeaderPrinter {
36 p.TextStyle = style
37 return &p
38}
39
40// WithBackgroundStyle changes the background styling of the header.
41func (p HeaderPrinter) WithBackgroundStyle(style *Style) *HeaderPrinter {

Callers 1

Calls

no outgoing calls

Tested by 1