output

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatStatus

func FormatStatus(status string) string

func FormatValue added in v1.9.0

func FormatValue(v interface{}) string

FormatValue prints a decoded JSON value, numbers without exponents (1073741824, not 1.073741824e+09).

func NewProgressBar

func NewProgressBar(max int, description string) *progressbar.ProgressBar

func PrintError

func PrintError(msg string)

func PrintInfo

func PrintInfo(msg string)

func PrintJSON

func PrintJSON(data interface{}) error

func PrintSuccess

func PrintSuccess(msg string)

func PrintWarning

func PrintWarning(msg string)

func RenderSeries added in v1.9.0

func RenderSeries(title string, resp json.RawMessage) error

RenderSeries prints a {"metrics": {name: [[ts, value], ...]}} envelope as one row per metric with its latest value, min, max and sample count.

Types

type Spinner

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

func NewSpinner

func NewSpinner(msg string) *Spinner

func (*Spinner) Start

func (sp *Spinner) Start()

func (*Spinner) Stop

func (sp *Spinner) Stop()

func (*Spinner) StopWithError

func (sp *Spinner) StopWithError(msg string)

func (*Spinner) StopWithSuccess

func (sp *Spinner) StopWithSuccess(msg string)

type Table

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

func NewTable

func NewTable(title string, headers []string) *Table

func (*Table) AddRow

func (t *Table) AddRow(values ...string)

func (*Table) Render

func (t *Table) Render()

Jump to

Keyboard shortcuts

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