progress

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BASE        = 0x2588
	EIGHT       = 8
	ProgressBar = "bar"
	WIDTH       = 80
)
View Source
const ProgressCount = "count"
View Source
const S = "⠉⠁" + "⠈⠉" + " ⠙" + " ⠸" + " ⢰" + " ⣠" +
	"⢀⣀" + "⣀⡀" + "⣄ " + "⡆ " + "⠇ " + "⠋ "

Variables

This section is empty.

Functions

This section is empty.

Types

type Bar

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

func NewBar

func NewBar(config Config) *Bar

func (*Bar) AfterTask

func (b *Bar) AfterTask(_ context.Context, res *task.Result) error

func (*Bar) BeforeTask

func (b *Bar) BeforeTask(context.Context, *spec.Tool, *file.File) error

func (*Bar) Close

func (b *Bar) Close() (err error)

func (*Bar) Open

func (b *Bar) Open(context.Context) error

type Config

type Config struct {
	Aurora aurora.Aurora
	Writer io.Writer
}

type Count

type Count struct {
	Config
	// contains filtered or unexported fields
}

func NewCount

func NewCount(config Config) *Count

func (*Count) AfterTask

func (c *Count) AfterTask(_ context.Context, res *task.Result) error

func (*Count) BeforeTask

func (c *Count) BeforeTask(context.Context, *spec.Tool, *file.File) error

func (*Count) Close

func (c *Count) Close() error

func (*Count) Open

func (c *Count) Open(context.Context) error

type Progress

type Progress interface {
	internal.Observer
}

func New

func New(name string, config Config) (Progress, error)

type State

type State struct {
	Done, Total, Failed uint64
}

Jump to

Keyboard shortcuts

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