Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCommandInfo ¶
func GetCommandInfo(cmd *cobra.Command) map[string]CommandInfo
Types ¶
type CommandEntry ¶
type CommandEntry struct {
Command string
Info CommandInfo
}
A struct to hold key-value pairs for the template
type CommandInfo ¶
type CommandInfo struct {
CobraCmd *cobra.Command `json:"-"`
Command string `json:"Command"`
Flags map[string]FlagInfo `json:"Flags"`
}
func (CommandInfo) GenerateHelpFixtures ¶
func (c CommandInfo) GenerateHelpFixtures() error
func (CommandInfo) GenerateSpecfile ¶
func (c CommandInfo) GenerateSpecfile() error
Click to show internal directories.
Click to hide internal directories.