progress

package
v0.0.0-...-7426b64 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 18 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}
	StepInstall  = step{"install", locale.T("installing"), 30000}
)

Functions

func MaxNameWidth

func MaxNameWidth() int

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

Types

type DotProgressDigester

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

func NewDotProgressIndicator

func NewDotProgressIndicator(out output.Outputer) *DotProgressDigester

NewDotProgressIndicator prints dots at an interval while a runtime is being setup (during solve, download, and install steps). The primary goal is to indicate to various CI systems (or during non-interactive mode) that progress is being made.

func (*DotProgressDigester) Close

func (d *DotProgressDigester) Close() error

func (*DotProgressDigester) Handle

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

type ProgressDigester

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

func NewProgressIndicator

func NewProgressIndicator(w io.Writer, out output.Outputer) *ProgressDigester

func (*ProgressDigester) Close

func (p *ProgressDigester) Close() error

func (*ProgressDigester) Handle

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

Jump to

Keyboard shortcuts

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