Documentation
¶
Index ¶
- func FormatStatus(status string) string
- func FormatValue(v interface{}) string
- func NewProgressBar(max int, description string) *progressbar.ProgressBar
- func PrintError(msg string)
- func PrintInfo(msg string)
- func PrintJSON(data interface{}) error
- func PrintSuccess(msg string)
- func PrintWarning(msg string)
- func RenderSeries(title string, resp json.RawMessage) error
- type Spinner
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatStatus ¶
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 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
}