recipe

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAppTmplFunc

func GetAppTmplFunc(tmplName string) (func(c *cli.Context) *templater.AppTemplate, error)

func Templates

func Templates() map[string][]string

Types

type Params

type Params struct {
	IsRemote   bool
	CurrentDir string
	AppName    string
	ModName    string
}

Params is setting sturct for template

type Recipe

type Recipe interface {
	Do(*templater.AppTemplate) bool
}

Recipe is template execute interface like chef

func New

func New(out io.Writer, params Params) Recipe

New is creating Recipe

type RecipeTemplates

type RecipeTemplates interface {
	List() []string
	IsExist(string) bool
	GetFunc(string) func(*cli.Context) *templater.AppTemplate
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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