fix: use new RecipeMeta struct

This commit is contained in:
decentral1se 2021-09-06 12:24:23 +02:00
parent f4d8b45859
commit 8aaedee39e
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 4 additions and 4 deletions

View File

@ -82,18 +82,18 @@ var appNewCommand = &cli.Command{
}
// getRecipe retrieves a recipe from the recipe catalogue.
func getRecipe(recipeName string) (catalogue.Recipe, error) {
func getRecipe(recipeName string) (catalogue.RecipeMeta, error) {
catl, err := catalogue.ReadRecipeCatalogue()
if err != nil {
return catalogue.Recipe{}, err
return catalogue.RecipeMeta{}, err
}
rec, ok := catl[recipeName]
if !ok {
return catalogue.Recipe{}, fmt.Errorf("recipe '%s' does not exist?", recipeName)
return catalogue.RecipeMeta{}, fmt.Errorf("recipe '%s' does not exist?", recipeName)
}
if err := recipe.EnsureExists(rec.Name); err != nil {
return catalogue.Recipe{}, err
return catalogue.RecipeMeta{}, err
}
return rec, nil