WithRemoveWhenDone removes the SpinnerPrinter after it is done.
(b ...bool)
| 84 | |
| 85 | // WithRemoveWhenDone removes the SpinnerPrinter after it is done. |
| 86 | func (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. |
| 92 | func (s SpinnerPrinter) WithShowTimer(b ...bool) *SpinnerPrinter { |