WithTitle sets the name of the ProgressbarPrinter.
(name string)
| 66 | |
| 67 | // WithTitle sets the name of the ProgressbarPrinter. |
| 68 | func (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. |
no outgoing calls