progress

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tracker

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

Tracker wraps a progress bar for file processing.

func NewSpinner

func NewSpinner(label string) *Tracker

NewSpinner creates a spinner for operations with unknown total count.

func NewTracker

func NewTracker(label string, total int) *Tracker

NewTracker creates a progress bar with the given label and total count.

func (*Tracker) FinishError

func (t *Tracker) FinishError(err error)

FinishError clears the bar and prints an error message to stderr.

func (*Tracker) FinishSkipped

func (t *Tracker) FinishSkipped(reason string)

FinishSkipped clears the bar and prints a skip message to stderr.

func (*Tracker) FinishSuccess

func (t *Tracker) FinishSuccess()

FinishSuccess clears the bar completely (no output).

func (*Tracker) Tick

func (t *Tracker) Tick()

Tick increments the progress by 1. Safe for concurrent use.

Jump to

Keyboard shortcuts

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