printer

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PrintfGreen func(format string, a ...interface{}) = color.New(color.FgGreen).PrintfFunc()
View Source
var PrintlnGreen func(a ...interface{}) = color.New(color.FgGreen).PrintlnFunc()

Functions

func NewTablePrinter

func NewTablePrinter(o io.Writer, minWidth, tabWidth, padding int, padChar byte) *printer

NewTablePrinter creates a printer instance, and uses to format output with table.

Types

type PrintFlags

type PrintFlags struct {
	JSONYamlFlags *genericclioptions.JSONYamlPrintFlags
	JSONPathFlags *genericclioptions.JSONPathPrintFlags
}

func NewPrintFlags

func NewPrintFlags() *PrintFlags

func (*PrintFlags) AddFlags

func (p *PrintFlags) AddFlags(c *cobra.Command)

func (*PrintFlags) AllowedFormats

func (p *PrintFlags) AllowedFormats() []string

AllowedFormats is the list of formats in which data can be displayed

func (*PrintFlags) ToPrinter

func (p *PrintFlags) ToPrinter(output string) (printers.ResourcePrinter, error)

Jump to

Keyboard shortcuts

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