-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console] OutputFormatterStyle for html colors #11392
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
Comments
this would be quite complex to write, because this would require escaping any other HTML, which will be a huge pain. |
see sensiolabs/ansi-to-html |
This is great! Would be a nice addition for the documentation of the Console component. |
i think this could be described in a cookbook. You should open an issue on the symfony-docs repo suggesting it (or even better contribute to the doc with such a cookbook). anyway, closing this issue as @fabpot agrees with me that the converter is a better way to handle it. |
Adding it to the Cookbook is fine, will do that when I've got some spare time at the end of this week. |
An addition to the docs is a great idea! I didn't know about the sensiolabs library - I have a use for this in a project :). |
…Rvanlaak) This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #5062). Discussion ---------- Cookbook about Command in Application with AnsiToHtml | Q | A | ------------- | --- | Doc fix? | no | New docs? | yes | Applies to | >= 2.3 | Fixed tickets | symfony/symfony#11392 Commits ------- 0799366 Documentation about using Command in Controller
Currently the OutputFormatter of the Console command nicely colors the output when used on cli.
Some of the command I've created are executed via a backend setup module, the output is returned to the controller using a
StreamOutput
Feature: a new OutputFormatterStyle to format the output according with html colors / bold / etc
This could be part of the DX-initiative (?)
The text was updated successfully, but these errors were encountered: