Documentation ¶
Index ¶
- func NewTableSection(out io.Writer) *tablewriter.Table
- func NewTableWriter(out io.Writer) *tabwriter.Writer
- func PrintJson(out io.Writer, v interface{}) error
- func PrintPlaintext(out io.Writer, v interface{}) error
- func PrintTable(out io.Writer, v interface{}, getRow func(row interface{}) []interface{}, ...) error
- func PrintTableSection(out io.Writer, v interface{}, getRow func(row interface{}) []string, ...) error
- func PrintYaml(out io.Writer, v interface{}) error
- type Format
- type Formats
- type PrintOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTableSection ¶ added in v0.28.0
func NewTableSection(out io.Writer) *tablewriter.Table
func PrintPlaintext ¶
PrintPlaintext is a printer that prints the provided value as is
func PrintTable ¶
func PrintTableSection ¶ added in v0.28.0
Types ¶
type PrintOptions ¶
func (*PrintOptions) ParseFormat ¶
func (p *PrintOptions) ParseFormat() error
func (*PrintOptions) Validate ¶
func (p *PrintOptions) Validate(allowedFormats []Format) error
Click to show internal directories.
Click to hide internal directories.