MCPcopy
hub / github.com/pterm/pterm / WithRemoveWhenDone

Method WithRemoveWhenDone

spinner_printer.go:86–89  ·  view source on GitHub ↗

WithRemoveWhenDone removes the SpinnerPrinter after it is done.

(b ...bool)

Source from the content-addressed store, hash-verified

84
85// WithRemoveWhenDone removes the SpinnerPrinter after it is done.
86func (s SpinnerPrinter) WithRemoveWhenDone(b ...bool) *SpinnerPrinter {
87 s.RemoveWhenDone = internal.WithBoolean(b)
88 return &s
89}
90
91// WithShowTimer shows how long the spinner is running.
92func (s SpinnerPrinter) WithShowTimer(b ...bool) *SpinnerPrinter {

Callers 1

Calls 1

WithBooleanFunction · 0.92

Tested by 1