Documentation
¶
Overview ¶
Package printer provides utilities for printing standard structures from api in convenient formats.
Index ¶
Constants ¶
View Source
const OutputFlagName = "output"
Variables ¶
View Source
var ObjectsSupportedFormats = []Format{ YAMLFormat, JSONFormat, CSVFormat, }
ObjectsSupportedFormats lists Format which supports encoding manifest.Object.
Functions ¶
This section is empty.
Types ¶
type Format ¶
type Format string
Format represents supported printing outputs.
const ( YAMLFormat Format = "yaml" JSONFormat Format = "json" CSVFormat Format = "csv" TOMLFormat Format = "toml" )
All supported output formats by Printer.
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
func NewPrinter ¶ added in v0.12.0
func (*Printer) MustRegisterFlags ¶ added in v0.12.0
MustRegisterFlags registers flags related to printing structured data.
func (*Printer) Validate ¶ added in v0.17.0
Validate should be called before Printer.Print, after the flag values are assigned.
Click to show internal directories.
Click to hide internal directories.