spec

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Name  string
	Steps exec.Executables
}

Action represents a named executable that can be invoked from the command line via "jen do XXX" or via a "do" step

func (Action) Execute

func (a Action) Execute(context exec.Context) error

Execute executes many steps in sequence

func (Action) String

func (a Action) String() string

type ActionMap

type ActionMap map[string]Action

ActionMap represents a dictionary mapping action names to their corresponding action

type Spec

type Spec struct {
	Name         string
	Version      string
	Description  string
	Placeholders map[string]string
	Actions      map[string]Action
}

Spec represents a template specification file found in the root of the template's dir

func Load

func Load(templateDir string) (*Spec, error)

Load loads spec object from a template directory

Jump to

Keyboard shortcuts

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