progress

package
v0.0.0-...-c4d1043 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OutputDeviceIsTerminal

func OutputDeviceIsTerminal() bool

OutputDeviceIsTerminal ...

func SimpleProgress

func SimpleProgress(printChar string, tickInterval time.Duration, action func())

SimpleProgress ... action : have to be a synchronous action! tickInterval : e.g. : 5000 * time.Millisecond

func SimpleProgressE

func SimpleProgressE(printChar string, tickInterval time.Duration, action func() error) error

SimpleProgressE ...

Types

type Spinner

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

Spinner ...

func NewDefaultSpinner

func NewDefaultSpinner(message string) Spinner

NewDefaultSpinner ...

func NewSpinner

func NewSpinner(message string, chars []string, delay time.Duration, writer io.Writer) Spinner

NewSpinner ...

func (*Spinner) Start

func (s *Spinner) Start()

Start ...

func (*Spinner) Stop

func (s *Spinner) Stop()

Stop ...

type Wrapper

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

Wrapper ...

func NewDefaultWrapper

func NewDefaultWrapper(message string) Wrapper

NewDefaultWrapper ...

func NewWrapper

func NewWrapper(spinner Spinner, interactiveMode bool) Wrapper

NewWrapper ...

func (Wrapper) WrapAction

func (w Wrapper) WrapAction(action func())

WrapAction ...

Jump to

Keyboard shortcuts

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