andreascreten/wp-cli — Issue #37: Add a more unix friendly output format for wp option get
Author: mrchrisadams
Created: 2011-10-25 16:07:19+00:00
State: open

wp-cli looks fantastic, and it looks like it'll make automating wordpress deployments much easier, but adding an easier to grep format option like how `drush` does for drupal would make the tool much more powerful, and easier to work with, when scripting.

Look at the syntax for drush:

variable-get
Lists the variables for your site

Examples:
drush vget List all variables and values.
drush vget user List all variables beginning with
the string "user".

Arguments:
name A string to filter the variables by.
Only variables beginning with the
string will be listed.

Options:
--pipe Use var_export() to emit executable
PHP. Useful for pasting into code.

This doesn't look like a huge change to make this work, mostly around changing the [options.php][0] file in wp-cli/commands/internals to export vars instead.

Possible?

[0]: https://github.com/andreascreten/wp-cli/blob/master/commands/internals/option.php#L87