output

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindFlags

func BindFlags(flags *pflag.FlagSet)

BindFlags defines a set of output-specific flags within the provided FlagSet.

func ClearOutputFlagDefault

func ClearOutputFlagDefault(cmd *cobra.Command)

ClearOutputFlagDefault sets the current and default value of the "output" flag to the empty string.

func GetLabelColumnsValues

func GetLabelColumnsValues(cmd *cobra.Command) []string

GetLabelColumnsValues returns the value of the "label-columns" flag in the provided command, or the zero value if not present.

func GetOutputFlagValue

func GetOutputFlagValue(cmd *cobra.Command) string

GetOutputFlagValue returns the value of the "output" flag in the provided command, or the zero value if not present.

func GetShowLabelsValue

func GetShowLabelsValue(cmd *cobra.Command) bool

GetShowLabelsValue returns the value of the "show-labels" flag in the provided command, or the zero value if not present.

func NewPrinter

func NewPrinter(cmd *cobra.Command) (*printers.HumanReadablePrinter, error)

NewPrinter returns a printer for doing human-readable table printing of Ark objects.

func PrintWithFormat

func PrintWithFormat(c *cobra.Command, obj runtime.Object) (bool, error)

PrintWithFormat prints the provided object in the format specified by the command's flags.

func ValidateFlags

func ValidateFlags(cmd *cobra.Command) error

ValidateFlags returns an error if any of the output-related flags were specified with invalid values, or nil otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

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