tui

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSpinner

func NewSpinner(message string, doneChan <-chan struct{}) spinnerModel

Types

type ProgressModel

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

func NewProgressModel

func NewProgressModel(total int, updates <-chan ProgressUpdate) ProgressModel

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() tea.View

type ProgressUpdate

type ProgressUpdate struct {
	Done    int
	Total   int
	Current string
	Final   bool
}

Jump to

Keyboard shortcuts

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