Version: v0.1.5 Latest Latest

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

Go to latest
Published: May 31, 2019 License: MIT Imports: 3 Imported by: 0




This section is empty.


This section is empty.


func BlankFunction added in v0.1.0

func BlankFunction(*Config) string

func BlankFunctionMap added in v0.1.0

func BlankFunctionMap(*Config) map[string]string

func Str added in v0.1.4

func Str(isSuccess bool, success, not string) string


type Config added in v0.1.0

type Config struct {
	Templates []*Template
	Install   []*Template

func (*Config) Environments added in v0.1.0

func (c *Config) Environments() (result Environments)

func (*Config) Init added in v0.1.0

func (c *Config) Init(console *console.Console)

endregion region Config

func (*Config) IsEnabled added in v0.1.1

func (c *Config) IsEnabled(tID string) bool

func (*Config) Libraries added in v0.1.0

func (c *Config) Libraries() (result Libraries)

func (*Config) Models added in v0.1.0

func (c *Config) Models() (result Models)

func (*Config) Properties added in v0.1.0

func (c *Config) Properties() (result Properties)

func (*Config) TemplateClosers added in v0.1.2

func (c *Config) TemplateClosers() (result TemplateClosers)

func (*Config) TemplateFiles added in v0.1.0

func (c *Config) TemplateFiles() (result TemplateFiles)

func (*Config) TemplateRunFunctions added in v0.1.0

func (c *Config) TemplateRunFunctions() (result TemplateRunFunctions)

func (*Config) TemplateSetterFunctions added in v0.1.0

func (c *Config) TemplateSetterFunctions() (result TemplateSetterFunctions)

func (*Config) TemplateSetters added in v0.1.0

func (c *Config) TemplateSetters() (result TemplateSetters)

type Environment

type Environment struct {
	Name    string
	Type    string
	Env     string
	Default string

type Environments added in v0.1.0

type Environments []*Environment

func (Environments) String added in v0.1.0

func (env Environments) String() string

endregion region Environments

type Libraries added in v0.1.0

type Libraries []*Library

func (Libraries) Dep added in v0.1.0

func (libs Libraries) Dep() string

func (Libraries) Interface added in v0.1.4

func (libs Libraries) Interface() []interface{}

func (Libraries) String added in v0.1.0

func (libs Libraries) String() string

endregion region Libraries

type Library

type Library struct {
	Name    string
	Alias   string
	Repo    string
	Version string
	Branch  string

type Models

type Models []string

func (Models) String added in v0.1.0

func (models Models) String() string

endregion region Models

type Properties added in v0.1.0

type Properties []*Property

func (Properties) String added in v0.1.0

func (props Properties) String() string

endregion region Properties

func (Properties) Values added in v0.1.0

func (props Properties) Values() string

type Property

type Property struct {
	Name    string
	Type    string
	Default string

type Template added in v0.1.0

type Template struct {
	ID           string
	Name         string
	Package      string
	Dependencies []string
	Conflicts    []string
	Select       []*Template

	Environments []*Environment
	Properties   []*Property
	Libraries    []*Library
	Models       map[string]string

	TemplateSetter         func(*Config) string
	TemplateSetterFunction func(*Config) string
	TemplateRunFunction    func(*Config) string
	TemplateClosers        func(*Config) string
	Templates              func(*Config) map[string]string

func New added in v0.1.0

func New() *Template

func (*Template) Prompt added in v0.1.0

func (t *Template) Prompt() string

region Template

func (*Template) Variants added in v0.1.4

func (t *Template) Variants() (result []interface{})

type TemplateClosers added in v0.1.2

type TemplateClosers []string

func (TemplateClosers) String added in v0.1.2

func (functions TemplateClosers) String() string

endregion region TemplateClosers

type TemplateFiles added in v0.1.0

type TemplateFiles map[string]string

type TemplateRunFunctions added in v0.1.0

type TemplateRunFunctions []string

func (TemplateRunFunctions) String added in v0.1.0

func (functions TemplateRunFunctions) String() string

endregion region TemplateRunFunctions

type TemplateSetterFunctions added in v0.1.0

type TemplateSetterFunctions []string

func (TemplateSetterFunctions) String added in v0.1.0

func (functions TemplateSetterFunctions) String() string

endregion region TemplateSetterFunctions

type TemplateSetters added in v0.1.0

type TemplateSetters []string

func (TemplateSetters) String added in v0.1.0

func (functions TemplateSetters) String() string

endregion region TemplateSetters

Jump to

Keyboard shortcuts

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