Spinner is a simple and efficient CLI loading spinner used by kind It is simplistic and assumes that the line length will not change. It is best used indirectly via log.Status (see parent package)
type Spinner struct {
// contains filtered or unexported fields
}
func NewSpinner(w io.Writer) *Spinner
NewSpinner initializes and returns a new Spinner that will write to
func (s *Spinner) SetPrefix(prefix string)
SetPrefix sets the prefix to print before the spinner
func (s *Spinner) SetSuffix(suffix string)
SetSuffix sets the suffix to print after the spinner
func (s *Spinner) Start()
Start starts the spinner running
func (s *Spinner) Stop()
Stop signals the spinner to stop
func (s *Spinner) TimeSpent() string
TimeSpent returns the seconds spent since the spinner first started