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

Method GenericStart

area_printer.go:119–123  ·  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

117// This is used for the interface LivePrinter.
118// You most likely want to use Start instead of this in your program.
119func (p *AreaPrinter) GenericStart() (*LivePrinter, error) {
120 _, _ = p.Start()
121 lp := LivePrinter(p)
122 return &lp, nil
123}
124
125// GenericStop runs Stop, but returns a LivePrinter.
126// 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