mk/lib/types.go

19 lines
507 B
Go
Raw Normal View History

2021-09-29 11:55:11 +00:00
package lib
type MkTask struct {
Name string
Help string
Cmd string `yaml:"cmd"`
Pre []string `yaml:"pre"`
Onerror string `yaml:"onerror"`
Env map[string]string `yaml:"env"`
Vars map[string]string `yaml:"vars"`
}
type MkModel struct {
Env map[string]string `yaml:"env"`
Vars map[string]string `yaml:"vars"`
Tasks map[string]*MkTask `yaml:"tasks"`
Default string `yaml:"default"`
Stack map[string]string `yaml:"-"`
}