spinner

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(spin *Spinner)

func Stop

func Stop(spin *Spinner)

Types

type Model

type Model struct {
	Spinner       spinner.Model
	Message       string
	QuitMessage   string
	SoftInterrupt bool
}

func (*Model) Init

func (model *Model) Init() tea.Cmd

func (*Model) Update

func (model *Model) Update(message tea.Msg) (tea.Model, tea.Cmd)

func (*Model) View

func (model *Model) View() string

type Spinner

type Spinner struct {
	Model   *Model
	Program *tea.Program
	Done    chan bool
}

func New

func New(message string) *Spinner

Jump to

Keyboard shortcuts

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