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