MCPcopy
hub / github.com/pterm/pterm / WithTitle

Method WithTitle

progressbar_printer.go:68–71  ·  view source on GitHub ↗

WithTitle sets the name of the ProgressbarPrinter.

(name string)

Source from the content-addressed store, hash-verified

66
67// WithTitle sets the name of the ProgressbarPrinter.
68func (p ProgressbarPrinter) WithTitle(name string) *ProgressbarPrinter {
69 p.Title = name
70 return &p
71}
72
73// WithMaxWidth sets the maximum width of the ProgressbarPrinter.
74// If the terminal is smaller than the given width, the terminal width will be used instead.

Calls

no outgoing calls