Documentation
¶
Index ¶
- func Error(format string, args ...interface{})
- func Info(format string, args ...interface{})
- func JSON(data interface{}) error
- func Print(headers []string, rows [][]string, jsonData interface{}) error
- func PrintSimple(headers []string, rows [][]string) error
- func PrintSingle(fields map[string]string, jsonData interface{}) error
- func SetFormat(f string)
- func Success(format string, args ...interface{})
- func Table(headers []string) *tablewriter.Table
- func Truncate(s string, max int) string
- func Writer() io.Writer
- type Format
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintSimple ¶
PrintSimple prints rows in a simple tab-separated format
func PrintSingle ¶
PrintSingle prints a single item's details in a key:value layout. Keys are sorted alphabetically for deterministic output.
func Table ¶
func Table(headers []string) *tablewriter.Table
Table creates a new table writer with standard styling
Types ¶
Click to show internal directories.
Click to hide internal directories.