-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Console] Document how to exclude messages from output using SymfonyStyle #7360
N 8000 ew 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
[Console] Document how to exclude messages from output using SymfonyStyle #7360
Conversation
da29e85
to
31a2a44
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chalasr I liked this contribution a lot ... but I wanted to reword it slightly to better explain the stdout
and stderr
differences because stderr
is still very confusing and a lot of developers think it's only useful to output error messages.
@javiereguiluz You did right, it was a bit unclear. Thanks for that! |
Any other review for this before merging it? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a minor comment but 👍
console/style.rst
Outdated
If you create a ``SymfonyStyle`` instance with an ``OutputInterface`` object | ||
that is not an instance of :class:`Symfony\\Component\\Console\\Output\\ConsoleOutputInterface`, | ||
the ``getErrorStyle()`` method will have no effect and the returned object | ||
will still output to the standard output instead of the error output. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"will still write" to avoid the repetition?
It's merged! Thanks @chalasr. |
…ing SymfonyStyle (chalasr, javiereguiluz) This PR was merged into the master branch. Discussion ---------- [Console] Document how to exclude messages from output using SymfonyStyle This adds documentation for symfony/symfony#20586, any suggestion will be really welcomed. Commits ------- a5c5524 Minor fix ff0ccde Reworded the description 31a2a44 Document how to exclude irrelevant messages from command output using SymfonyStyle
and thank you @javi 83CF ereguiluz :) |
This adds documentation for symfony/symfony#20586, any suggestion will be really welcomed.