diff --git a/cmd/recipe.go b/cmd/recipe.go index c46d7f6..e4eb74e 100644 --- a/cmd/recipe.go +++ b/cmd/recipe.go @@ -8,7 +8,7 @@ import ( "github.com/spf13/cobra" - "repos.gmgauthier.com/gmgauthier/grokkit/internal/recipe" // adjust if your module name differs + "gmgauthier.com/grokkit/internal/recipe" // adjust if your module name differs ) var recipeCmd = &cobra.Command{ @@ -84,7 +84,10 @@ func resolveRecipePath(nameOrPath string) (string, error) { if _, err := os.Stat(global); err == nil { fmt.Printf("Recipe %q not found in project.\nFound globally at %s\nUse this one? [y/N] ", nameOrPath, global) var answer string - fmt.Scanln(&answer) + _, err := fmt.Scanln(&answer) + if err != nil { + return "", err + } if strings.HasPrefix(strings.ToLower(answer), "y") { return global, nil }