statusspinner

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatusSpinner

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

StatusSpinner is a struct which implements StatusHooks, and uses a spinner to display status messages

func NewStatusSpinner

func NewStatusSpinner(opts ...StatusSpinnerOpt) *StatusSpinner

func (*StatusSpinner) Done

func (s *StatusSpinner) Done()

Done implements StatusHooks

func (*StatusSpinner) Message

func (s *StatusSpinner) Message(msgs ...string)

func (*StatusSpinner) SetStatus

func (s *StatusSpinner) SetStatus(msg string)

SetStatus implements StatusHooks

func (*StatusSpinner) UpdateSpinnerMessage

func (s *StatusSpinner) UpdateSpinnerMessage(newMessage string)

UpdateSpinnerMessage updates the message of the given spinner

type StatusSpinnerOpt

type StatusSpinnerOpt func(*StatusSpinner)

func WithDelay

func WithDelay(delay time.Duration) StatusSpinnerOpt

func WithMessage

func WithMessage(msg string) StatusSpinnerOpt

Jump to

Keyboard shortcuts

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