ui

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShowSpinner

func ShowSpinner(message string, fn func() error) error

ShowSpinner is a convenience function for simple spinner usage

Types

type Spinner

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

Spinner provides a simple command-line spinner for long-running operations

func NewSpinner

func NewSpinner(message string) *Spinner

NewSpinner creates a new spinner instance

func (*Spinner) Start

func (s *Spinner) Start()

Start begins spinning, showing feedback within 100ms

func (*Spinner) Stop

func (s *Spinner) Stop(finalMessage string)

Stop stops the spinner and optionally shows a final message

func (*Spinner) Update

func (s *Spinner) Update(message string)

Update changes the spinner message while it's running

Jump to

Keyboard shortcuts

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