ref: df1f2fb3daa1acd25c88510f259d5535fb482126
dir: /internal/progress/options.go/
package progress
import (
"time"
"codeberg.org/lindenii/furgit/common/iowrap"
)
// Options configures one progress meter.
type Options struct {
Writer iowrap.WriteFlusher
Title string
Total uint64
// Delay suppresses progress output until Delay has elapsed since Start.
Delay time.Duration
// Sparse forces one final 100% line at Stop when the caller sampled updates.
Sparse bool
// Throughput appends ", <total> | <rate>/s" and refreshes rate every 500ms.
Throughput bool
}