Documentation
¶
Index ¶
Constants ¶
View Source
const (
// ErrFmtWrapErr is uses to format error strings.
ErrFmtWrapErr = "%w: %v"
)
Variables ¶
View Source
var ( ErrFetchingFormat = fmt.Errorf("error fetching format flag") ErrFetchingMaxColumns = fmt.Errorf("error fetching max-columns flag") ErrFetchingDelimiter = fmt.Errorf("error fetching delimiter flag") ErrFetchingStack = fmt.Errorf("error fetching stack flag") ErrFetchingQuery = fmt.Errorf("error fetching query flag") )
Error constants for flag operations.
Functions ¶
func AddCommonListFlags ¶
AddCommonListFlags adds common flags to list commands.
Types ¶
type CommonFlags ¶
CommonFlags contains common flags for list commands.
func GetCommonListFlags ¶
func GetCommonListFlags(cmd *cobra.Command) (*CommonFlags, error)
GetCommonListFlags gets common flags from a command.
type ProcessingFlags ¶
ProcessingFlags holds flags for processing templates and YAML functions.
func GetProcessingFlags ¶
func GetProcessingFlags(cmd *cobra.Command) *ProcessingFlags
GetProcessingFlags gets template and function processing flags from a command.
Click to show internal directories.
Click to hide internal directories.