-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
29 lines (25 loc) · 773 Bytes
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package types
import "github.com/aquilax/cooklang-go"
type Config struct {
DryRun bool `mapstructure:"dry-run"`
Jsonify bool `mapstructure:"jsonify"`
IgnoreFile string `mapstructure:"ignore-file"`
RecipeSearchRoot string `mapstructure:"recipe-search-root"`
LogLevel string `mapstructure:"log-level"`
TemplateFiles []string `mapstructure:"template-files"`
WordWrap int `mapstructure:"word-wrap"`
}
// Recipe contains a cooklang defined recipe
type Recipe struct {
Steps []cooklang.Step // list of steps for the recipe
Metadata cooklang.Metadata // metadata of the recipe
Config Config
Info Info
}
type Info struct {
ImageFileName string
ImageFilePath string
NewRecipeFilePath string
RecipeName string
RecipeFilePath string
}