progress

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package progress provides progress indication components.

This package contains components for showing progress during long-running operations, such as spinners and progress bars.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProgressBar added in v0.14.0

type ProgressBar struct {
	// contains filtered or unexported fields
}

ProgressBar wraps a Bubbletea progress bar for simple non-interactive use. Use this for determinate operations where you know the total count.

func NewProgressBar added in v0.14.0

func NewProgressBar(total int, message string) *ProgressBar

NewProgressBar creates a new progress bar with the given total and message.

func (*ProgressBar) SetProgress added in v0.14.0

func (p *ProgressBar) SetProgress(current int, message string)

SetProgress updates the current progress and message.

func (*ProgressBar) Start added in v0.14.0

func (p *ProgressBar) Start()

Start begins the progress bar display.

func (*ProgressBar) Stop added in v0.14.0

func (p *ProgressBar) Stop()

Stop stops the progress bar and clears the line.

func (*ProgressBar) Total added in v0.14.0

func (p *ProgressBar) Total() int

Total returns the total count for the progress bar.

type Spinner

type Spinner struct {
	// contains filtered or unexported fields
}

Spinner wraps a Bubbletea spinner for simple non-interactive use

func NewSpinner

func NewSpinner(message string) *Spinner

NewSpinner creates a new spinner with the given message

func (*Spinner) Start

func (s *Spinner) Start()

Start begins the spinner animation

func (*Spinner) Stop

func (s *Spinner) Stop()

Stop stops the spinner and clears the line

func (*Spinner) UpdateMessage

func (s *Spinner) UpdateMessage(message string)

UpdateMessage changes the spinner message

Jump to

Keyboard shortcuts

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