jlogsdon/php-cli-tools — pull request #8 by johnpbloch (2012-06-26 20:06:43+00:00)
Title: Move stream write functions to a streams class

This pull request moves the stream writing functions (e.g. `\cli\out()`, `\cli\err()`, etc.) into a class and turns the old functions into wrappers for the class to maintain backwards compatibility.

This would allow overriding the class to define non-standard handlers for `STDIN`, `STDOUT`, and `STDERR`. Among other things, this would allow programs to use output buffering if necessary.