2021-09-29 11:55:11 +00:00
|
|
|
package lib
|
|
|
|
|
|
|
|
type MkTask struct {
|
2021-11-03 16:25:44 +00:00
|
|
|
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"`
|
|
|
|
Model string `yaml:"model"`
|
|
|
|
Variants []string `yaml:"variants"`
|
2021-09-29 11:55:11 +00:00
|
|
|
}
|
|
|
|
type MkModel struct {
|
2021-11-03 16:25:44 +00:00
|
|
|
Env map[string]string `yaml:"env"`
|
|
|
|
Vars map[string]string `yaml:"vars"`
|
|
|
|
RawTasks map[string]interface{} `yaml:"tasks"`
|
|
|
|
Tasks map[string]*MkTask `yaml:"-"`
|
|
|
|
Default string `yaml:"default"`
|
|
|
|
Stack map[string]string `yaml:"-"`
|
|
|
|
Debug bool `yaml:"debug"`
|
|
|
|
Trace bool `yaml:"trace"`
|
2021-09-29 11:55:11 +00:00
|
|
|
}
|