grokkit/internal/recipe/runner.go
Greg Gauthier 2cc728eed4 refactor(recipe): clean up comments, error handling, and output formatting
- Simplify import comments and error handling in cmd/recipe.go
- Streamline regex comment in internal/recipe/loader.go
- Enhance console output and add LLM placeholder in internal/recipe/runner.go
2026-03-06 19:00:16 +00:00

26 lines
613 B
Go

package recipe
import "fmt"
type Runner struct {
Recipe *Recipe
}
func NewRunner(r *Recipe) *Runner {
return &Runner{Recipe: r}
}
func (r *Runner) Run() error {
fmt.Printf("🍳 Starting recipe: %s v%s\n\n", r.Recipe.Name, r.Recipe.Version)
for _, step := range r.Recipe.Steps {
fmt.Printf("Step %d/%d: %s\n", step.Number, len(r.Recipe.Steps), step.Title)
// TODO: here we will send step.Instructions (plus Objective/Expected) to the LLM
// and handle the response according to Expected output
fmt.Println(" → (LLM call coming soon)")
}
fmt.Println("\n✅ Recipe complete.")
return nil
}