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

15 calls to drush_print_pipe()
drush_archive_dump in commands/core/archive.drush.inc
Command callback. Generate site archive file.
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_cli in commands/core/core.drush.inc
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_core_search_status in commands/core/search.drush.inc

... See full list

File

includes/drush.inc, line 608
The drush API implementation and helpers.

Code

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