Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Allow specifying direct dependencies #40

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

IonBazan
Copy link
Owner

@IonBazan IonBazan commented Feb 6, 2025

This PR fixes #39 by adding --direct option which limits the output to only direct dependencies (listed in either require or require-dev).

Additionally, JsonFormatter displays this additional information under direct: false|true key.

@royduin let me know what you think about this implementation. You can test this feature using:

composer global require ion-bazan/composer-diff:dev-feature/direct-dependencies

@IonBazan IonBazan self-assigned this Feb 6, 2025
Copy link

codecov bot commented Feb 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (b337dc8) to head (421225c).
Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##                main       #40   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
- Complexity       228       241   +13     
===========================================
  Files             21        21           
  Lines            666       704   +38     
===========================================
+ Hits             666       704   +38     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@IonBazan IonBazan force-pushed the feature/direct-dependencies branch from 8adc7a6 to 73983e1 Compare February 6, 2025 05:58
@royduin
Copy link

royduin commented Feb 6, 2025

I didn't expect that so fast 🚀 looking good!! 💯

@IonBazan IonBazan merged commit 623a9a0 into main Feb 6, 2025
40 checks passed
@IonBazan IonBazan deleted the feature/direct-dependencies branch February 6, 2025 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: direct option just like composer outdated
2 participants