wp-cli/wp-cli — pull request #169 by goldenapples (2012-09-20 22:12:45+00:00)
Title: Implement --porcelain option for wp plugin status

I needed this one for a script I was writing; I have a script which deploys
changes from a staging site to a production site using mysqldump and import.
Since I keep different plugins active on the production site, I was trying
to compare the output of `wp plugin status` before and after importing the
database, then activating or deactivating plugins as necessary. Trying to
parse out the escape codes was way too complex, so I tried hacking WP CLI
instead, which was much easier.

This is admittedly a fairly hacky approach, and it would be good to refactor
this so that the same option can be used for all the commands which extend
WP_CLI_Command_With_Upgrade (the `status` subcommand, where I see this being
most helpful, is common to all of them). I wasn't sure where the best place
to define it would be though.

Any thoughts?