feature/recipe_implementation #5

Merged
gmgauthier merged 54 commits from feature/recipe_implementation into master 2026-03-07 23:17:54 +00:00
Showing only changes of commit dcac119e57 - Show all commits

View File

@ -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
}