fix: make --list respect the --output option - #49
Merged
Conversation
Also give main() an argv parameter, matching the other CLI entry points, so it can be tested directly. Assisted-by: ClaudeCode:claude-fable-5
henryiii
marked this pull request as ready for review
August 5, 2026 23:21
sirosen
approved these changes
Aug 6, 2026
sirosen
left a comment
Contributor
There was a problem hiding this comment.
I think a bugfix note for the changelog would be nice, but not strictly necessary.
| stdio = capsys.readouterr() | ||
| return CLIResult(rc, stdio.out, stdio.err) | ||
|
|
||
| return _run |
Contributor
There was a problem hiding this comment.
I think I'll work up a follow-up changeset to combine these fixtures with the other test module.
I have some other CLI testing patterns I've found useful, like baking in a default assertion on the exit code.
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.
🤖 AI text below 🤖
The
dependency-groups --listflag ignored-o/--outputand always printed to stdout. The group list now goes through the same output handling as resolved requirements, so-o fileworks; stdout output is unchanged.main()also gains anargvkeyword parameter to match the other CLI entry points, which lets the new tests call it directly.📚 Documentation preview 📚: https://dependency-groups--49.org.readthedocs.build/en/49/