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
Add --format option to composer fund
command
#9678
Conversation
* Return empty json when no funding found instead of text * Include all funding urls (do not override)
@stof thanks for reviewing this. |
src/Composer/Command/FundCommand.php
Outdated
foreach ($fundings as $vendor => $links) { | ||
$fundingJson[$vendor] = array(); | ||
foreach ($links as $url => $packages) { | ||
$fundingJson[$vendor]['packages'] = $packages; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is still wrong. The list of packages is not per vendor but per url. Otherwise, you loose all except the ones of the last link.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stof makes sense. Instead of building my own array the existing one is now used. So the issue should be fixed.
May i ask for another review? :-)
Thanks! |
* Add --format option to `composer fund` command Co-authored-by: Jochen Roth <jochen.roth@b13.com>
Hey,
currently building a little GUI around composer. I want to show funding information in the GUI.
Therefore i added
--format
option to thecomposer fund
command which allows to outputfund details as JSON.