Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator defines attributes need to generate go code from the yaml file
func NewGenerator ¶
NewGenerator returns a cligen.Generator object used to translate yaml file into gocode for CLI
func (*Generator) Generate ¶
func (g *Generator) Generate()
Generate the gocode for cobra commands read from yaml into Generator 'ctree'
func (*Generator) ProcessCommand ¶
ProcessCommand uses templates to generates the cobra command that is generated from the yaml file. This is a recursive method.
Click to show internal directories.
Click to hide internal directories.