Documentation
¶
Overview ¶
Package parse contains libraries for parsing dynamic Resources into cobra.Commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandParser ¶
type CommandParser struct{}
CommandParser parses clidnamic.Commands into cobra.Commands
func (*CommandParser) Parse ¶
func (p *CommandParser) Parse(cmd *clidynamic.Command) (*cobra.Command, Values)
Parse parses the dynamic ResourceCommand into a cobra ResourceCommand
type Flags ¶
type Flags struct { // Strings contains a map of flag names to string values Strings map[string]*string // Ints contains a map of flag names to int values Ints map[string]*int32 // Bools contains a map of flag names to bool values Bools map[string]*bool // Floats contains a map of flag names to flat values Floats map[string]*float64 // StringSlices contains a map of flag names to string slice values StringSlices map[string]*[]string }
Flags contains flag values setup for the cobra command
Click to show internal directories.
Click to hide internal directories.