README ¶ cg A code generator Quick Start Add template cd examples # add a template to user path cg add base # as new name cg add base test Use Template # use template to generate cg g base --name Tom --age 12 cg g test --name Job --age 44 Use git Add template repo # clone template repo cg clone https://github.com/MQpeng/cg-templates fetch template repo # pull template repo cg pull Expand ▾ Collapse ▴ Directories ¶ Show internal Expand all Path Synopsis cmd cg Click to show internal directories. Click to hide internal directories.