X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Fcommands%2Fcore%2Foutputformat%2Ftable.inc;fp=vendor%2Fdrush%2Fdrush%2Fcommands%2Fcore%2Foutputformat%2Ftable.inc;h=0000000000000000000000000000000000000000;hp=81a9cfa27bb3db3ee80169d24a115cda695cfbac;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/drush/drush/commands/core/outputformat/table.inc b/vendor/drush/drush/commands/core/outputformat/table.inc deleted file mode 100644 index 81a9cfa27..000000000 --- a/vendor/drush/drush/commands/core/outputformat/table.inc +++ /dev/null @@ -1,51 +0,0 @@ - array("b" => 2, "c" => 3), - * "d" => array("b" => 5, "c" => 6) - * ); - * - * Output with --format=table: - * - * b c - * 2 3 - * 5 6 - */ -class drush_outputformat_table extends drush_outputformat { - function format($input, $metadata) { - $field_list = isset($metadata['field-labels']) ? $metadata['field-labels'] : array(); - $widths = array(); - $col = 0; - foreach($field_list as $key => $label) { - if (isset($metadata['column-widths'][$key])) { - $widths[$col] = $metadata['column-widths'][$key]; - } - ++$col; - } - $rows = drush_rows_of_key_value_to_array_table($input, $field_list, $metadata); - $field_labels = array_key_exists('include-field-labels', $metadata) && $metadata['include-field-labels']; - if (!$field_labels) { - array_shift($rows); - } - return drush_format_table($rows, $field_labels, $widths); - } -}