Documentation ¶
Index ¶
- func Basic(ctx *cli.Context, cfg TemplateConfig) error
- func HTTP(ctx *cli.Context, cfg TemplateConfig) error
- func List() []string
- func My(ctx *cli.Context, cfg TemplateConfig) error
- func New(typ string, ctx *cli.Context, cfg TemplateConfig) error
- func Tree(ctx *cli.Context, cfg TemplateConfig) error
- func ValidateType(typ string) bool
- type TemplateConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateType ¶
Types ¶
type TemplateConfig ¶
type TemplateConfig struct { Name string `cli:"-"` Dir string `cli:"d,dir" usage:"parent dir of generated project" dft:"./"` TplDir string `cli:"tpl-dir" usage:"useful if TYPE is empty or equal to my" name:"TPL_DIR"` Values string `cli:"values" usage:"useful if TYPE is empty. format: --values={k1:v1/k2:v2}"` }
Click to show internal directories.
Click to hide internal directories.