spinner

package
v0.45.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Spinner

type Spinner struct {
	// contains filtered or unexported fields
}

func New

func New(w io.Writer, localizer localize.Localizer) *Spinner

New create a new Spinner instance

func (*Spinner) SetLocalizedSuffix

func (s *Spinner) SetLocalizedSuffix(id string, entries ...*localize.TemplateEntry)

SetLocalizedSuffix sets the spinner suffix from an i18n ID

func (*Spinner) SetSuffix

func (s *Spinner) SetSuffix(suffix string)

SetSuffix sets the spinner suffix message

func (*Spinner) Start

func (s *Spinner) Start()

Start starts the spinner

func (*Spinner) Stop

func (s *Spinner) Stop()

Stop stops the spinner

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL