templates

package
v0.0.0-...-df99a90 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Basic

func Basic(ctx *cli.Context, cfg TemplateConfig) error

func HTTP

func HTTP(ctx *cli.Context, cfg TemplateConfig) error

func List

func List() []string

func My

func My(ctx *cli.Context, cfg TemplateConfig) error

func New

func New(typ string, ctx *cli.Context, cfg TemplateConfig) error

func Tree

func Tree(ctx *cli.Context, cfg TemplateConfig) error

func ValidateType

func ValidateType(typ string) bool

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}"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL