Documentation
¶
Overview ¶
Package progress provides progress bar utilities for pdf-cli.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProgressBarTheme = progressbar.Theme{
Saucer: "=",
SaucerHead: ">",
SaucerPadding: " ",
BarStart: "[",
BarEnd: "]",
}
ProgressBarTheme is the default theme for progress bars.
Functions ¶
func FinishProgressBar ¶
func FinishProgressBar(bar *progressbar.ProgressBar)
FinishProgressBar prints a newline after the progress bar if it exists.
func NewBytesProgressBar ¶
func NewBytesProgressBar(description string, total int64) *progressbar.ProgressBar
NewBytesProgressBar creates a progress bar for byte-based progress (e.g., downloads).
func NewProgressBar ¶
func NewProgressBar(description string, total, threshold int) *progressbar.ProgressBar
NewProgressBar creates a consistent progress bar with the given description and total count. Returns nil if total is at or below the threshold for showing progress.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.