MCPcopy
hub / github.com/pterm/pterm / GenericStop

Method GenericStop

spinner_printer.go:212–216  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

210// This is used for the interface LivePrinter.
211// You most likely want to use Stop instead of this in your program.
212func (s *SpinnerPrinter) GenericStop() (*LivePrinter, error) {
213 _ = s.Stop()
214 lp := LivePrinter(s)
215 return &lp, nil
216}
217
218// Info displays an info message
219// If no message is given, the text of the SpinnerPrinter will be reused as the default message.

Callers

nothing calls this directly

Calls 2

StopMethod · 0.95
LivePrinterInterface · 0.85

Tested by

no test coverage detected