cli

package
v0.0.0-...-1f1f075 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL