-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console] Allow console listing to be with/without space #14174
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
Conversation
I don't think it's a good idea to add this feature ... but I think it may be a good idea your underlying proposal. If we want to provide a consistent interface for console commands, we shouldn't define these options that can change the output style. However, if you think that the current listing style is ugly and we should add/remove the space between list elements, that's something that we should definitely consider. Could you please paste some screenshot of a command with an ugly output because of the use of the new listing output style? Thanks. |
here are screenshots before/after: For me the space is to big for CLI :) |
@javiereguiluz My bad I've not seen that issue before |
I agree there should not be a space between the list elements. |
ok so lets revert the code and only have "\n" for the glue |
Thank you |
This PR was squashed before being merged into the 2.7 branch (closes #14196). Discussion ---------- Tweaked some console command styles | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #14174 | License | MIT | Doc PR | - As discussed, after updating the first console commands to the new style guide, we were going to introduce the needed tweaks. This PR is the first one with those tweaks. ### Tables Headers now are displayed in the usual green color used frequently by Symfony commands:  ### Command tiles and section titles I see these titles in a beautiful blue color ... but lots of people use color schemes which make them almost unreadable. Now they use the yellow color frequently used by Symfony commands:  ### Listings Elements in a listing no longer add an extra blank line. See #14174 for the rationale. Commits ------- dcf1801 Tweaked some console command styles
#14057 is full of new ideas; when testing I thought that a list without space could be useful.