Commit d6477f6b authored by anarcat's avatar anarcat Committed by anarcat

add a command to parse --backend output

i got tired of stabbing my eyes with inline JSON output so I wrote a
very very simple command that just parses STDIN as a --backend output
command. this can be useful for debugging when calling backend commands
without thinking of removing --backend, or in my case, to pass data
through STDIN as JSON, but still have a proper output.
parent 70665364
function drush_provision_backend_parse() {
return drush_backend_parse_output(file_get_contents('php://stdin'), TRUE);
......@@ -208,6 +208,11 @@ function provision_drush_command() {
'' => dt('The url of the site being migrated.')),
$items['backend-parse'] = array(
'description' => dt('Parse the output of --backend commands to a human readable form'),
return $items;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment