function drush_get_command_format_metadata

8.0.x outputformat.drush.inc drush_get_command_format_metadata($command, $metadata = array())
6.x outputformat.drush.inc drush_get_command_format_metadata($command, $metadata = array())
7.x outputformat.drush.inc drush_get_command_format_metadata($command, $metadata = array())
master outputformat.drush.inc drush_get_command_format_metadata($command, $metadata = array())

Given a command name or a command record, return the command formatter that is used to process that command's output.

2 calls to drush_get_command_format_metadata()
drush_core_status in commands/core/core.drush.inc
Command callback. Provides a birds-eye view of the current Drupal installation.
_core_site_credentials in commands/core/core.drush.inc

File

commands/core/outputformat.drush.inc, line 29
Core drush output formats.

Code

function drush_get_command_format_metadata($command, $metadata = array()) {
  $commands = drush_get_commands();
  if (!is_array($command) && array_key_exists($command, $commands)) {
    $command = $commands[$command];
  }
  return drush_get_command_engine_config($command, 'outputformat', $metadata);
}