progress

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 7 Imported by: 21

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 NewDefaultSpinnerWithOutput added in v1.0.11

func NewDefaultSpinnerWithOutput(message string, output io.Writer) Spinner

NewDefaultSpinnerWithOutput ...

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 NewDefaultWrapperWithOutput added in v1.0.11

func NewDefaultWrapperWithOutput(message string, output io.Writer) Wrapper

NewDefaultWrapperWithOutput ...

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