Documentation ¶
Overview ¶
Package cli provides a CLI UI for the gentmpl command line tool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run() int
Run parses the command line arguments of the gentmpl tool.
If -g option was specified, it generate a demo configuration file for the gentmpl utility calling the CreateConfig method of a run.Context object.
Otherwise it reads the configuration file for initialize a run.Context and runs its CreatePackage method.
It returns the code that should be used for os.Exit.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.