spinner

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpinnerErrorMsg

type SpinnerErrorMsg error

type SpinnerModel

type SpinnerModel[T any] struct {
	Error      error
	Result     SpinnerResultMsg[T]
	ResultChan chan SpinnerResultMsg[T]
	// contains filtered or unexported fields
}

func CreateSpinner

func CreateSpinner[T any](message string) SpinnerModel[T]

func (SpinnerModel[any]) Init

func (m SpinnerModel[any]) Init() tea.Cmd

func (SpinnerModel[any]) Update

func (m SpinnerModel[any]) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (SpinnerModel[any]) View

func (m SpinnerModel[any]) View() string

type SpinnerResultMsg

type SpinnerResultMsg[T any] struct {
	Result T
	Error  error
}

Jump to

Keyboard shortcuts

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