Conversation
Adds a --type/-t flag to filter diff output by dependency type (runtime, development, etc.), consistent with the list command. The diff command now: - Captures and preserves DependencyType in DiffEntry - Supports filtering via --type flag - Displays non-runtime types in brackets (e.g., [development]) - Includes dependency_type in JSON output This is a step toward addressing #71 by making dependency type information available in diff output. A future enhancement could add --group-by-type for tree-style grouping.
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.
Adds a
--type/-tflag to thediffcommand to filter output by dependency type (runtime, development, etc.), consistent with the existing flag in thelistcommand.Changes
DependencyTypefield toDiffEntrystructcomputeDiffto preserve dependency type information--type/-tflag for filtering by dependency type[development])dependency_typeto JSON outputExamples
Filter to show only runtime dependency changes:
Filter to show only development dependency changes:
Relation to #71
This PR addresses part of #71 by making dependency type information available in diff output and adding the ability to filter by type. A future enhancement could add
--group-by-typeto enable tree-style grouping similar to the example in the issue.