teaspinner

package
v1.9.0-test Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogMsg

type LogMsg string

type Spinner

type Spinner struct {
	Spinner spinner.Model
	Cancel  func()
	// contains filtered or unexported fields
}

Spinner is a component that displays a spinner while updating the logs.

func (*Spinner) Init

func (s *Spinner) Init() tea.Cmd

Init is called when the program starts and returns the initial command.

func (*Spinner) SetText added in v1.8.0

func (s *Spinner) SetText(text string)

func (*Spinner) Update

func (s *Spinner) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update handles incoming messages.

func (*Spinner) View

func (s *Spinner) View() string

View renders the UI.

Jump to

Keyboard shortcuts

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