Comments (7)
Hello, thanks for your suggestion.
I like the idea, I don't think implementing it would be too complicated. We could either change the default output or just add an option to allow the choice of the desired output.
Would you like to give it a try?
from composer-changelogs.
Changing the default output to a Markdown table wouldn't look pretty in the console. So I'm in favor of adding an option, although I'm not sure how to pass that option to the plugin without having to pass a flag everytime.
from composer-changelogs.
Indeed, let's have another optional table output instead 👍 Speaking of it, which columns do you need? It would be better to have the same columns for the three operations (install, update, uninstall).
About the architecture, I think we could add support for a new option in the plugin section of the composer.json. See this documentation to have a look at the existing config supported by this plugin with the ConfigBuilder
and the related Config
DTO.
I guess we could add an OutputFormatter
interface with 2 implementations (current formatting and table). Then, according to the new config option, we would pass the correct implementation to the OutputFormatter
/ getOutput
method of OperationHandler
classes.
Does this sounds good to you?
from composer-changelogs.
Yes, sounds good!
The table columns would preferably be package name, previous version, current version, release notes link, compare link. So something like this; https://github.com/davidrjonas/composer-lock-diff#example-plain-text-table-output
from composer-changelogs.
@pyrech come to think of it, your suggestion would mean I'd have to edit the composer.json
file in every project I'd like to see a table output, which in our case is a lot (we run an agency). Isn't there a way to store parameters like this somewhere in composer's global scope, like in a file somewhere? I'd rather not touch the repositories themselves.
from composer-changelogs.
Yes, that is supported 🙂. The plugin configuration can also be set in your global location (usually in ~/.composer/composer.json
) 😉. See https://github.com/pyrech/composer-changelogs/blob/master/doc/configuration.md#location
from composer-changelogs.
@pyrech of course, forgot about that one. Perfect!
from composer-changelogs.
Related Issues (20)
- PHP Fatal error: Cannot redeclare class SLLH\ComposerVersionsCheck\VersionsCheckPlugin in Composer/Plugin/PluginManager.php(246) HOT 3
- Undefined index: scheme HOT 2
- Suggestion: Show changelog via composer.lock log HOT 2
- problem infering zend tags HOT 7
- Exception when installing "Undefined index: scheme" HOT 2
- Support for gitlab HOT 5
- Plugin can be register with a little hack HOT 1
- Detect downgrades HOT 1
- Lower PHP version requirement to 5.3 HOT 1
- Running the auto-commit after composer scripts HOT 3
- Change how classes are force-autoloaded HOT 1
- Improve the "composer outdated" command output HOT 1
- Long format changes description HOT 2
- Display VCS Revision for dev-xyz HOT 3
- Drop old PHP versions HOT 2
- Update to Composer 2
- Usage with --dry-run HOT 3
- Deprecation Notice: strpos(): Passing null to parameter #1 HOT 4
- Error when upgrading to v2.0.0 (Cannot assign Pyrech\ComposerChangelogs\Config\Config to property) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from composer-changelogs.