cooklang / cooklang/cookcli

Cook doctor ingredient list to identify source recipes

Open
#485 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.4k
Forks
109
Avg merge
1d 22h
Merged PRs (30d)
19

Description

Running cook doctor helpfully returns a list of ingredients that are not currently in the aisle.conf.

Often, the ingredients listed identify inconsistencies or errors in recipes. For example, "ground cumin", "ground cummin", "cummin ground", "cumin powder", "cumin seed, ground" and so on. Sometimes the solution is to add aliases to aisle.conf, to make clear these are the same ingredient. But frequently this shows inconsistencies in how ingredients are included in individual recipe files that need to be amended in the recipe files themselves. This could be to use "ground cumin" consistently across these recipes or to reduce the number of aliases required.

It would be great to have some output from cook doctor which indicated how many recipes use each ingredient (even though not currently in aisle.conf) and potentially listing the names of one or more recipes. This would make it easier to find recipes with errors or inconsistencies and to correct them.

Contributor guide

Open the contributing guide

Research direction

Start by running the cook doctor command and tracing where it reports ingredients absent from aisle.conf. Inspect the recipe files that provide those ingredients and the existing aisle.conf lookup behavior; done means the output includes each ingredient's recipe count and, where appropriate, one or more recipe names.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.