spinner

package
v0.58.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run added in v0.58.0

func Run(p *print.Printer, message string, f func() error) error

Run starts a spinner and stops it when f completes

func Run2 added in v0.58.0

func Run2[T any](p *print.Printer, message string, f func() (T, error)) (T, error)

Run2 starts a spinner and stops it when f (result arity 2) completes.

Types

type Spinner

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

Jump to

Keyboard shortcuts

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