Skip to content

Conversation

@chalasr
Copy link
Member

@chalasr chalasr commented Jan 13, 2017

This adds documentation for symfony/symfony#20586, any suggestion will be really welcomed.

@chalasr chalasr force-pushed the console/style/writing-to-stderr branch from da29e85 to 31a2a44 Compare January 13, 2017 19:25
Copy link
Member

@javiereguiluz javiereguiluz left a 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.

@chalasr
Copy link
Member Author

chalasr commented Apr 15, 2017

@javiereguiluz You did right, it was a bit unclear. Thanks for that!

@javiereguiluz
Copy link
Member

Any other review for this before merging it? Thanks!

Copy link
Contributor

@HeahDude HeahDude left a 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 👍

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.
Copy link
Contributor

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?

@javiereguiluz
Copy link
Member

It's merged! Thanks @chalasr.

@javiereguiluz javiereguiluz merged commit a5c5524 into symfony:master Apr 28, 2017
javiereguiluz added a commit that referenced this pull request Apr 28, 2017
…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
@chalasr chalasr deleted the console/style/writing-to-stderr branch April 28, 2017 14:18
@chalasr
Copy link
Member Author

chalasr commented Apr 28, 2017

and thank you @javiereguiluz :)

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