feat: add --list-tasks and --start-at-task for inspection and resume#232
Merged
josegonzalez merged 3 commits intomainfrom Apr 29, 2026
Merged
feat: add --list-tasks and --start-at-task for inspection and resume#232josegonzalez merged 3 commits intomainfrom
josegonzalez merged 3 commits intomainfrom
Conversation
`--list-tasks` on `apply` and `plan` walks the resolved task plan post `--play` / `--tags` filtering and post `loop:` expansion and prints one line per envelope without running. `when:` predicates evaluate against inputs only; predicates that reference `.registered` render as `[unknown]`. `--start-at-task <name>` on `apply` skips earlier tasks (with a `(before --start-at-task)` reason) and runs from the matched task onward, including descending into a `block:` group when the match lives inside. `validate --strict` gains cross-reference checks for `--play` and `--start-at-task`, surfacing `unknown_play_reference` / `unknown_start_at_task` problems for typos before they reach `apply`.
|
The loader auto-names entries that omit `name:` as `task #N <hex>`, so a recipe written entirely with shorthand (`- dokku_app: { app: ... }`) renders as opaque random suffixes in --list-tasks output. When the envelope name matches the auto pattern, fall back to `<TypeName>: <body identifier>` (App, Name, Service, Repository, Mount, Url) so the listing reads back the body the user wrote.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--list-tasksonapplyandplanwalks the resolved task plan post--play/--tagsfiltering and postloop:expansion and prints one line per envelope without running.when:predicates evaluate against inputs only; predicates that reference.registeredrender as[unknown].--start-at-task <name>onapplyskips earlier tasks (rendered as[skipped] ... (before --start-at-task)) and runs from the matched task onward, including descending into ablock:group when the match lives inside.validate --strictgains cross-reference checks for--playand--start-at-task, surfacingunknown_play_reference/unknown_start_at_taskproblems for typos before they reachapply.Closes #212.