spinner

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package spinner provides a TTY-aware activity spinner for long-running operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Spinner

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

Spinner wraps briandowns/spinner with TTY awareness.

func New

func New(label string) *Spinner

New creates a spinner that writes to stderr. Returns a no-op spinner when stderr is not a TTY (pipes, CI, redirects).

func (*Spinner) Start

func (sp *Spinner) Start()

Start begins the spinner animation.

func (*Spinner) Stop

func (sp *Spinner) Stop()

Stop halts the spinner and clears it from the terminal.

Jump to

Keyboard shortcuts

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