progressbar

package
v5.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, bars []*ProgressBar, spinners []Spinner) *tea.Program

Types

type ProgressBar

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

func NewBar

func NewBar(name string, id int, bar progress.Model) *ProgressBar

type ProgressModel

type ProgressModel struct {
	ProgressBars []*ProgressBar
	Spinners     []Spinner
	// contains filtered or unexported fields
}

func (*ProgressModel) Init

func (m *ProgressModel) Init() tea.Cmd

func (*ProgressModel) Update

func (m *ProgressModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ProgressModel) View

func (m ProgressModel) View() string

type ProgressMsg

type ProgressMsg struct {
	ID      int
	Percent float64
}

type ProgressMsg float64

type ProgressSpinnerMsg

type ProgressSpinnerMsg int

type Spinner

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

func NewSpinner

func NewSpinner(name string, id int) Spinner

Jump to

Keyboard shortcuts

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