sandwitchboard/cmd.go

17 lines
812 B
Go
Raw Normal View History

2024-07-03 19:14:38 +01:00
package main
type generateCmd struct {
2024-07-06 05:56:57 +01:00
Path string `arg:"" help:"Path to the directory with the recipes."`
Output string `default:"dist" help:"Path to the directory where the files will be generated."`
NameKey string `default:"name" short:"n" help:"The metadata key for the recipe name."`
2024-08-03 07:48:56 +01:00
URLKey string `default:"url" short:"u" help:"The metadata key for the recipe URL."`
2024-07-06 05:56:57 +01:00
Title string `default:"Recipes directory" short:"t" help:"The title to use at the recipe index."`
IngredientsTitle string `default:"Ingredients" short:"i" help:"The title to use at the list of ingredients of each recipe"`
2024-07-03 19:14:38 +01:00
}
var cli struct {
Debug bool `help:"Print debug information."`
Generate generateCmd `cmd:"" help:"Generate the web files for a directory of recipes."`
}