Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownFormat = errors.New("unknown output format")
Functions ¶
This section is empty.
Types ¶
type OutputFormat ¶
type OutputFormat struct {
// contains filtered or unexported fields
}
func NewOutputFormat ¶
func NewOutputFormat() *OutputFormat
func (*OutputFormat) AddFlags ¶
func (o *OutputFormat) AddFlags(cmd *cobra.Command)
func (*OutputFormat) ToPrinter ¶
func (o *OutputFormat) ToPrinter() printer.Interface
func (*OutputFormat) Validate ¶
func (o *OutputFormat) Validate() error
func (*OutputFormat) WithDefaultFormat ¶
func (o *OutputFormat) WithDefaultFormat(defaultFormat string) *OutputFormat
func (*OutputFormat) WithPrinter ¶
func (o *OutputFormat) WithPrinter(p printer.Interface) *OutputFormat
Click to show internal directories.
Click to hide internal directories.