Documentation ¶
Index ¶
Constants ¶
View Source
const AntiFlicker = 5 * time.Second
AntiFlicker is used to prevent bouncing between concurrent vertices too aggressively.
View Source
const MaxDelay = 10 * time.Second
MaxDelay is the maximum amount of time to favor the current vertex over other active vertices.
View Source
const MinProgressDelta = 0.05 // %
MinProgressDelta is the minimum progress percent to require before printing updates to a task.
View Source
const MinTimeDelta = 5 * time.Second
MinTimeDelta is the minimum amount of time to require before printing updates to a task.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Components ¶
type Components struct { TextContextSwitched string TextLogFormat string TextVertexRunning string TextVertexCanceled string TextVertexErrored string TextVertexCached string TextVertexDone string TextVertexDoneDuration string TextVertexGroup string TextVertexTask string TextVertexTaskDuration string TextVertexTaskProgressBound string TextVertexTaskProgressUnbound string RunningDuration, DoneDuration string }
func DefaultUI ¶
func DefaultUI(out *termenv.Output) Components
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) WriteStatus ¶
func (w *Writer) WriteStatus(status *progrock.StatusUpdate) error
type WriterOpt ¶
type WriterOpt func(*Writer)
func ShowInternal ¶
func WithMessageLevel ¶ added in v0.10.0
func WithMessageLevel(level progrock.MessageLevel) WriterOpt
func WithUI ¶
func WithUI(ui Components) WriterOpt
Click to show internal directories.
Click to hide internal directories.