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

Method GenericStart

spinner_printer.go:203–207  ·  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

201// This is used for the interface LivePrinter.
202// You most likely want to use Start instead of this in your program.
203func (s *SpinnerPrinter) GenericStart() (*LivePrinter, error) {
204 p2, _ := s.Start()
205 lp := LivePrinter(p2)
206 return &lp, nil
207}
208
209// GenericStop runs Stop, but returns a LivePrinter.
210// 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