Documentation
¶
Overview ¶
Package progress renders a Bubble Tea progress bar model — a composable spinner + percentage + label component reused across hex CLIs and TUIs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bar ¶
type Bar struct {
// contains filtered or unexported fields
}
Bar is a configured progress bar ready to run.
func (*Bar) WithOutput ¶
WithOutput enables a scrolling output window with the given height.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is a bubbletea model that renders a spinner, progress bar, percentage, and current item label. The spinner animates independently from the progress.
type Option ¶
type Option func(*Model)
Option configures a progress bar run.
func WithOutput ¶
WithOutput enables a scrolling output window below the progress bar with the given number of visible lines. A height of 0 disables the window (default).
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
Sender provides methods to report progress from within an Action.
func (*Sender) ItemDone ¶
ItemDone prints a success line for a completed item above the progress bar.
func (*Sender) ItemErr ¶
ItemErr prints an error line for a failed item above the progress bar and records the failure. The error string may contain multiple lines; additional lines are printed indented below the item.