Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProgressBar ¶
type ProgressBar struct {
// contains filtered or unexported fields
}
ProgressBar represents a terminal progress bar
func NewProgressBar ¶
func NewProgressBar(total int, prefix string) *ProgressBar
NewProgressBar creates a new progress bar
func (*ProgressBar) Add ¶
func (pb *ProgressBar) Add(n int)
Add increases the progress by the specified amount
func (*ProgressBar) Increment ¶
func (pb *ProgressBar) Increment()
Increment increases the progress by 1
func (*ProgressBar) SetTestDelay ¶
func (pb *ProgressBar) SetTestDelay(delay time.Duration)
SetTestDelay sets a delay for testing purposes
func (*ProgressBar) SetTotal ¶
func (pb *ProgressBar) SetTotal(total int)
SetTotal updates the total count
type ProgressTracker ¶
type ProgressTracker struct {
// contains filtered or unexported fields
}
ProgressTracker manages multiple progress operations
func NewProgressTracker ¶
func NewProgressTracker() *ProgressTracker
NewProgressTracker creates a new progress tracker
func (*ProgressTracker) AddBar ¶
func (pt *ProgressTracker) AddBar(name string, total int, prefix string) *ProgressBar
AddBar adds a new progress bar
func (*ProgressTracker) FinishAll ¶
func (pt *ProgressTracker) FinishAll()
FinishAll completes all progress bars
func (*ProgressTracker) GetBar ¶
func (pt *ProgressTracker) GetBar(name string) (*ProgressBar, bool)
GetBar retrieves a progress bar by name
Click to show internal directories.
Click to hide internal directories.