MCPcopy
hub / github.com/pterm/pterm / UpdateTitle

Method UpdateTitle

progressbar_printer.go:193–197  ·  view source on GitHub ↗

UpdateTitle updates the title and re-renders the progressbar

(title string)

Source from the content-addressed store, hash-verified

191
192// UpdateTitle updates the title and re-renders the progressbar
193func (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
200func (p *ProgressbarPrinter) updateProgress() *ProgressbarPrinter {

Callers 5

FprintFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

updateProgressMethod · 0.95