Documentation
¶
Overview ¶
Package gen contains the internals of the cgen application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTemplate ¶
NewTemplate parses and initializes the embedded templates.
Types ¶
type Command ¶
type Command struct { Meta meta IsRoot bool Name string Fullname string Use string `yaml:"use"` Short string `yaml:"short"` Long string `yaml:"long"` Example string `yaml:"example"` Aliases []string `yaml:"aliases"` Flags bool `yaml:"flags"` Args string `yaml:"args"` NoRun bool `yaml:"norun"` PersistentPreRun bool `yaml:"persistent_pre_run"` PersistentPostRun bool `yaml:"persistent_post_run"` PreRun bool `yaml:"pre_run"` PostRun bool `yaml:"post_run"` Commands []Command `yaml:"commands"` }
Command represents a cobra.Command with additional meta-data to be used during template execution.
func ParseCommand ¶
ParseCommand parses a yaml spec file and return the command.
Click to show internal directories.
Click to hide internal directories.