constant DRUSH_BACKEND_OUTPUT_START

  1. 8.0.x includes/backend.inc DRUSH_BACKEND_OUTPUT_START
  2. 6.x includes/backend.inc DRUSH_BACKEND_OUTPUT_START
  3. 7.x includes/backend.inc DRUSH_BACKEND_OUTPUT_START
  4. 5.x includes/backend.inc DRUSH_BACKEND_OUTPUT_START
  5. master includes/backend.inc DRUSH_BACKEND_OUTPUT_START

Identify the JSON encoded output from a command.

Note that Drush now outputs a null ("\0") before the DRUSH_BACKEND_OUTPUT_DELIMITER, but this null occurs where this constant is output rather than being included in the define. This is done to maintain compatibility with older versions of Drush, so that Drush-7.x can correctly parse backend messages from calls made to Drush-5.x and earlier. The null is removed via trim().

File

includes/backend.inc, line 71
Drush backend API

Code

define('DRUSH_BACKEND_OUTPUT_START', 'DRUSH_BACKEND_OUTPUT_START>>>')