Documentation
¶
Overview ¶
Package output provides formatters for command output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Format ¶
type Format string
Format types for output.
const ( // FormatTable represents table output format. FormatTable Format = "table" // FormatJSON represents JSON output format. FormatJSON Format = "json" // FormatYAML represents YAML output format. FormatYAML Format = "yaml" // FormatWide represents wide table output format. FormatWide Format = "wide" )
func DetectFormat ¶
DetectFormat auto-detects format based on terminal and environment.
func ParseFormat ¶
ParseFormat converts string to Format with validation.
type Formatter ¶
Formatter interface for all output types.
func NewFormatter ¶
NewFormatter creates appropriate formatter based on format.
type FormatterFunc ¶
FormatterFunc allows functions to implement Formatter.
Click to show internal directories.
Click to hide internal directories.