function drush_print_pipe

8.0.x output.inc drush_print_pipe($message = '')
6.x output.inc drush_print_pipe($message = '')
7.x output.inc drush_print_pipe($message = '')
3.x drush.inc drush_print_pipe($message = '')
4.x drush.inc drush_print_pipe($message = '')
5.x output.inc drush_print_pipe($message = '')
master output.inc drush_print_pipe($message = '')

Stores a message which is printed during drush_shutdown() if in compact mode.

Parameters

$message: The message to print. If $message is an array, then each element of the array is printed on a separate line.

Related topics

6 calls to drush_print_pipe()
drush_choice in includes/drush.inc
Ask the user to select an item from a list. From a provided associative array, drush_choice will display all of the questions, numbered from 1 to N, and return the item the user selected. "0" is always cancel; entering a blank line is also…
drush_core_help in commands/core/help.drush.inc
Command callback for help command. This is the default command, when none other has been specified.
drush_handle_command_output in includes/command.inc
Convert the structured output array provided from the Drush command into formatted output. Output is only printed for commands that define 'default-format' &/or 'default-pipe-format'; all other commands are expected to do…
drush_make_pre_make in commands/make/make.drush.inc
Implements drush_hook_pre_COMMAND().
drush_pm_extensions_in_project in commands/pm/pm.drush.inc
Print out all extensions (modules/themes/profiles) found in specified project.

... See full list

File

includes/output.inc, line 58

Code

function drush_print_pipe($message = '') {
  $buffer = &drush_get_context('DRUSH_PIPE_BUFFER', '');
  if (is_array($message)) {
    $message = implode("\n", $message) . "\n";
  }
  $buffer .= $message;
}