output

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Msg added in v0.13.0

func Msg(cmd *cobra.Command, format string, args ...any)

Msg prints an informational message to stderr unless --quiet is set.

func Print

func Print(cmd *cobra.Command, data []byte) error

Print formats and prints data based on the --output flag value.

Types

type Spinner added in v0.13.0

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

Spinner displays a simple progress spinner on stderr.

func NewSpinner added in v0.13.0

func NewSpinner(msg string, quiet bool) *Spinner

NewSpinner starts a spinner with the given message. Call Stop() when done. If quiet is true, no spinner is displayed but Stop() is still safe to call.

func (*Spinner) Stop added in v0.13.0

func (s *Spinner) Stop()

Stop stops the spinner.

Jump to

Keyboard shortcuts

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