progress

package
v0.0.0-...-7eaa7e1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StepBuild    = step{"build", locale.T("building"), 10000} // the priority is high because the artifact progress bars need to fit in between the steps
	StepDownload = step{"download", locale.T("downloading"), 20000}
	StepUnpack   = step{"unpack", locale.T("unpacking"), 30000}
	StepInstall  = step{"install", locale.T("installing"), 40000}
)

Functions

func MaxNameWidth

func MaxNameWidth() int

MaxNameWidth returns the maximum width to be used for a name in a progress bar

func NewRuntimeProgressIndicator

func NewRuntimeProgressIndicator(out output.Outputer) events.Handler

Types

type DotProgressDigester

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

func (*DotProgressDigester) Close

func (d *DotProgressDigester) Close() error

func (*DotProgressDigester) Handle

func (d *DotProgressDigester) Handle(event events.Event) error

type ProgressDigester

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

func (*ProgressDigester) Close

func (p *ProgressDigester) Close() error

func (*ProgressDigester) Handle

func (p *ProgressDigester) Handle(ev events.Event) error

Jump to

Keyboard shortcuts

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