progress

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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