GithubHelp home page GithubHelp logo

Comments (7)

pyrech avatar pyrech commented on May 26, 2024

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.

peterjaap avatar peterjaap commented on May 26, 2024

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.

pyrech avatar pyrech commented on May 26, 2024

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.

peterjaap avatar peterjaap commented on May 26, 2024

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.

peterjaap avatar peterjaap commented on May 26, 2024

@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.

pyrech avatar pyrech commented on May 26, 2024

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.

peterjaap avatar peterjaap commented on May 26, 2024

@pyrech of course, forgot about that one. Perfect!

from composer-changelogs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.