UpdateTitle updates the title and re-renders the progressbar
(title string)
| 191 | |
| 192 | // UpdateTitle updates the title and re-renders the progressbar |
| 193 | func (p *ProgressbarPrinter) UpdateTitle(title string) *ProgressbarPrinter { |
| 194 | p.Title = title |
| 195 | p.updateProgress() |
| 196 | return p |
| 197 | } |
| 198 | |
| 199 | // This is the update logic, renders the progressbar |
| 200 | func (p *ProgressbarPrinter) updateProgress() *ProgressbarPrinter { |