Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type File ¶
type File struct { Project *Project `yaml:"project"` Envs map[string]string `yaml:"envs,omitempty"` Steps map[string]*Step `yaml:"steps"` Vars *vars.Vars `yaml:"-"` }
File represents the build options for a project
func ParseFromFile ¶
ParseFromFile reads an Forge config file from the from the curent directory. A File with the populated values is returned and any errors encountered while trying to read the file.
type Project ¶
type Project struct {
Name string `yaml:"name"`
}
Project represents metadata about the project being built that can be included in the config file.
type Step ¶
type Step struct { Cmd string `yaml:"cmd,omitempty"` Cmds []string `yaml:"cmds,omitempty"` Envs map[string]string `yaml:"envs,omitempty"` Help string `yaml:"help,omitempty"` Post []string `yaml:"post,omitempty"` Pre []string `yaml:"pre,omitempty"` Steps []string `yaml:"steps,omitempty"` // contains filtered or unexported fields }
Step represents details of single step to be executed by the cli.
Click to show internal directories.
Click to hide internal directories.