feat(debug): accept positional flavors on debug config - #4174
Open
dgageot wants to merge 1 commit into
Open
Conversation
Collaborator
|
👋 This PR has merge conflicts with the base branch. Please rebase or merge the latest base branch and resolve them. I've moved it to draft and added |
Allows `docker agent debug config agent.yaml cheap with-shell` as an alternative (or complement) to `--flavor`. Resolved configs have their `flavors` section stripped so re-running the output is idempotent. Assisted-By: claude-sonnet-4-5
dgageot
force-pushed
the
worktree-board-825ca87b94432694
branch
from
September 4, 2026 16:02
8f4e303 to
67486bd
Compare
aheritier
approved these changes
Sep 4, 2026
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.
Inspecting a resolved config — after one or more flavors have been applied — currently requires writing a small wrapper YAML or manually editing the file. This is tedious when you just want to see what
debug configwould look like with a particular flavor active.debug confignow accepts flavor names as positional arguments after the agent file or registry ref:docker agent debug config examples/flavors.yaml cheap with-shell. Any positional flavors are appended after values supplied via--flavor, so both forms can be combined freely. When at least one flavor is provided (by either means), the command prints the fully resolved config — patches applied and theflavorssection omitted, since re-applying patches to an already-resolved document would produce incorrect results. Without flavors the output is unchanged.No breaking changes; the existing
--flavorflag and the no-flavor path both behave exactly as before.