progress

package
Version: v0.0.0-...-3e7a04d Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: MIT Imports: 7 Imported by: 17

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
t or T : Toggle theme light dark auto
y or Y : Canonical URL