MCPcopy
hub / github.com/pterm/pterm / GenericStart

Method GenericStart

progressbar_printer.go:332–336  ·  view source on GitHub ↗

GenericStart runs Start, but returns a LivePrinter. This is used for the interface LivePrinter. You most likely want to use Start instead of this in your program.

()

Source from the content-addressed store, hash-verified

330// This is used for the interface LivePrinter.
331// You most likely want to use Start instead of this in your program.
332func (p *ProgressbarPrinter) GenericStart() (*LivePrinter, error) {
333 p2, _ := p.Start()
334 lp := LivePrinter(p2)
335 return &lp, nil
336}
337
338// GenericStop runs Stop, but returns a LivePrinter.
339// This is used for the interface LivePrinter.

Callers

nothing calls this directly

Calls 2

StartMethod · 0.95
LivePrinterInterface · 0.85

Tested by

no test coverage detected