MCPcopy
hub / github.com/pterm/pterm / WithCenter

Method WithCenter

area_printer.go:46–49  ·  view source on GitHub ↗

WithCenter centers the AreaPrinter content to the terminal.

(b ...bool)

Source from the content-addressed store, hash-verified

44
45// WithCenter centers the AreaPrinter content to the terminal.
46func (p AreaPrinter) WithCenter(b ...bool) *AreaPrinter {
47 p.Center = internal.WithBoolean(b)
48 return &p
49}
50
51// SetWriter sets the writer for the AreaPrinter.
52func (p *AreaPrinter) SetWriter(writer io.Writer) {

Callers 6

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

WithBooleanFunction · 0.92

Tested by 1