progress

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 10 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bar

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

func NewBar

func NewBar(message string, maxValue, initialValue int64) *Bar

func (*Bar) Set

func (b *Bar) Set(value int64)

func (*Bar) String

func (b *Bar) String() string

type Progress

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

func NewProgress

func NewProgress(w io.Writer) *Progress

func (*Progress) Add

func (p *Progress) Add(key string, state State)

func (*Progress) Stop

func (p *Progress) Stop() bool

func (*Progress) StopAndClear

func (p *Progress) StopAndClear() bool

type Spinner

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

func NewSpinner

func NewSpinner(message string) *Spinner

func (*Spinner) SetMessage added in v0.3.6

func (s *Spinner) SetMessage(message string)

func (*Spinner) Stop

func (s *Spinner) Stop()

func (*Spinner) String

func (s *Spinner) String() string

type State

type State interface {
	String() string
}

type StepBar added in v0.14.0

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

StepBar displays step-based progress (e.g., for image generation steps).

func NewStepBar added in v0.14.0

func NewStepBar(message string, total int) *StepBar

func (*StepBar) Set added in v0.14.0

func (s *StepBar) Set(current int)

func (*StepBar) String added in v0.14.0

func (s *StepBar) String() string

Jump to

Keyboard shortcuts

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