terminal

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTTY added in v0.2.0

func IsTTY() bool

IsTTY returns true when stdout is an interactive terminal.

func ShowPlainTable

func ShowPlainTable(w io.Writer, headers []string, rows [][]string)

ShowPlainTable renders a plain text formatted table to writer.

Types

type Spinner added in v0.2.0

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

Spinner renders an animated braille spinner using charmbracelet/bubbles. Start() launches the animation; Stop() halts it and cleans up.

func NewSpinner added in v0.2.0

func NewSpinner(message string) *Spinner

func NewSpinnerWriter added in v0.2.0

func NewSpinnerWriter(message string, w io.Writer) *Spinner

NewSpinnerWriter creates a spinner that writes to w instead of stderr.

func (*Spinner) Start added in v0.2.0

func (s *Spinner) Start()

func (*Spinner) Stop added in v0.2.0

func (s *Spinner) Stop()

Jump to

Keyboard shortcuts

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