diff --git a/.grokkit/recipes/result-refactor.md b/.grokkit/recipes/result-refactor.md index b89656b..c83cd59 100644 --- a/.grokkit/recipes/result-refactor.md +++ b/.grokkit/recipes/result-refactor.md @@ -6,7 +6,7 @@ version: 1.0 parameters: package_path: type: string - default: internal/service + default: internal description: Package to refactor dry_run: type: bool @@ -33,6 +33,7 @@ Refactors all error handling in the target package to use the new Result[T] patt ### Step 1: Discover files **Objective:** Find every file that needs changing. **Instructions:** Recursively scan `{{.package_path}}` for `.go` files containing `if err != nil`. +If no files are found or the path does not exist, output exactly: "No files found matching the criteria." **Expected output:** A clean numbered list of full file paths (one per line). ### Step 2: Refactor each file