Process output text.
- 6.x includes/output.inc outputfunctions
- 5.x includes/output.inc outputfunctions
- 4.x includes/drush.inc outputfunctions
Prints a message with optional indentation. In general, drush_log($message, 'ok') is often a better choice than this function. That gets your confirmation message (for example) into the logs for this drush request. Consider that drush requests may be executed remotely and non interactively.
Functions
|
Name |
Location | Description |
|---|---|---|
| drush_html_to_text |
includes/ |
Convert html to readable text. Compatible API to drupal_html_to_text, but less functional. Caller might prefer to call drupal_html_to_text if there is a bootstrapped Drupal site available. |
| drush_json_decode |
includes/ |
Converts an HTML-safe JSON string into its PHP equivalent. |
| drush_json_encode |
includes/ |
Converts a PHP variable into its Javascript equivalent. |
| drush_key_value_to_array_table |
includes/ |
Convert an associative array of key : value pairs into a table suitable for processing by drush_print_table. |
| drush_print_file |
includes/ |
Print the contents of a file. |
| drush_print_pipe |
includes/ |
Stores a message which is printed during drush_shutdown() if in compact mode. |
| drush_print_r |
includes/ |
Prints an array or string. |
| drush_print_table |
includes/ |
Print a formatted table. |
| drush_table_column_autowidth |
includes/ |
Determine the best fit for column widths. |
| dt |
includes/ |
Rudimentary replacement for Drupal API t() function. |
File
- includes/
drush.inc, line 588 - The drush API implementation and helpers.