feat(cli): follow the mise en place schedule in the CLI and diffs #52
No reviewers
Labels
No labels
bug
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gram-lang/gram!52
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/cli-schedule"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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).