teaspinner

package
v1.3.1-Beta1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 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) 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