Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
Formatter handles formatting and outputting data.
func NewFormatter ¶
NewFormatter creates a new formatter.
type OutputFormat ¶
type OutputFormat struct {
Type string // "table", "json", or "template"
Template string // template string for custom formats
}
OutputFormat represents the output format type.
func ParseFormat ¶
func ParseFormat(formatStr string) (*OutputFormat, error)
ParseFormat parses the --format flag value. Examples:
- "" or "table" -> table format with default template
- "table TEMPLATE" -> table format with custom Go template
- "json" -> JSON format
- "TEMPLATE" -> custom Go template
Click to show internal directories.
Click to hide internal directories.