function drush_set_default_outputformat

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

Dynamically switch to a new output format. Does NOT override user-selected output format.

3 calls to drush_set_default_outputformat()
drush_core_watchdog_show_one in commands/core/watchdog.drush.inc
Print a watchdog message.
drush_views_execute in commands/core/views.d8.drush.inc
Drush views execute command.
_drush_sitealias_user_specified_list in commands/core/sitealias.drush.inc
Return the list of site aliases (remote or local) that the user specified on the command line. If none were specified, then all are returned.

File

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

Code

function drush_set_default_outputformat($format, $metadata = array()) {
  $command = drush_get_command();
  $command['engines']['outputformat']['default'] = $format;
  $outputformat = drush_load_command_engine($command, 'outputformat', $metadata);
}