From 8aaedee39e0517b52fde109a5ed4b0bdfae69c5d Mon Sep 17 00:00:00 2001 From: decentral1se Date: Mon, 6 Sep 2021 12:24:23 +0200 Subject: [PATCH] fix: use new RecipeMeta struct --- cli/app/new.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/app/new.go b/cli/app/new.go index 0536e7c4..e880a2a9 100644 --- a/cli/app/new.go +++ b/cli/app/new.go @@ -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