feat(cli): follow the mise en place schedule in the CLI and diffs #52

Merged
abiwab merged 2 commits from feat/cli-schedule into main 2026-09-30 08:06:17 +02:00
Owner

Adds --mise-en-place <per-section|upfront> to gram view, export and print (not cook: it shows no time that depends on the schedule, so the option would do nothing). View headers and exported totals follow the chosen timeline; active and preparation time are the same in both. The CLI stops reading the deprecated backgroundTasks and metrics.totalTime: background timers in view and cook come from the schedule blocks (matched by step index in sections[].steps, comments included, which differs from cook's own step numbering; a test locks that in), and the scale warning reads schedules.perSection. The analyzer's diff compares total and idle time from schedules.perSection and preparation and active time from metrics, so gram diff now reports the same times as gram view by default. Checked by running the real CLI on a recipe with both values and an invalid one (exit 1).

Adds --mise-en-place <per-section|upfront> to gram view, export and print (not cook: it shows no time that depends on the schedule, so the option would do nothing). View headers and exported totals follow the chosen timeline; active and preparation time are the same in both. The CLI stops reading the deprecated backgroundTasks and metrics.totalTime: background timers in view and cook come from the schedule blocks (matched by step index in sections[].steps, comments included, which differs from cook's own step numbering; a test locks that in), and the scale warning reads schedules.perSection. The analyzer's diff compares total and idle time from schedules.perSection and preparation and active time from metrics, so gram diff now reports the same times as gram view by default. Checked by running the real CLI on a recipe with both values and an invalid one (exit 1).
abiwab scheduled this pull request to auto merge when all checks succeed 2026-09-30 08:05:36 +02:00
abiwab merged commit d97a110b51 into main 2026-09-30 08:06:17 +02:00
abiwab deleted branch feat/cli-schedule 2026-09-30 08:06:17 +02:00
Sign in to join this conversation.
No description provided.