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

Allow to export commands with list in files #127

Open
nenes25 opened this issue Jul 17, 2020 · 1 comment
Open

Allow to export commands with list in files #127

nenes25 opened this issue Jul 17, 2020 · 1 comment
Assignees
Milestone

Comments

@nenes25
Copy link
Owner

nenes25 commented Jul 17, 2020

As symfony default command list option we should export the result of the list in the following formats :

  1. Txt
  2. Xml
  3. Json
  4. Md

The affected commands are the following :

  • admin:user:list
  • dev:cron:list
  • dev:list-overrides
  • hook:list
  • module:hook:list
  • module:list
  • module:tab:list
@nenes25 nenes25 added this to the 1.7 milestone Jul 17, 2020
@nenes25 nenes25 self-assigned this Jul 17, 2020
m3uusi pushed a commit to m3uusi/prestashop_console that referenced this issue Sep 16, 2020
@m3uusi
Copy link
Collaborator

m3uusi commented Sep 16, 2020

Some POC done in the commit:
m3uusi@598d16b

Maybe a Trait could be more interesting than an abstract class.

It could be interesting too to take a decision concerning the display of all list and harmonize all list command :

  • When displaying the results in text mode sometimes we have an header, sometimes not.
  • When there is not data (in json/xml format) , should we display an info or format an empty data object in the right format ?

The development I made was not based on the 1.7 branch so the namespace are still incorrect.
Waiting for answers to port it on the right branch with the right modifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants