function druplicon_drush_exit

8.0.x druplicon.drush.inc druplicon_drush_exit()
6.x druplicon.drush.inc druplicon_drush_exit()
7.x druplicon.drush.inc druplicon_drush_exit()

Implements hook_drush_exit().

File

commands/core/druplicon.drush.inc, line 21
Show Druplicon ASCII art at the end of any request which has --druplicon on it.

Code

function druplicon_drush_exit() {
  if (drush_get_option('druplicon')) {
    $misc_dir = DRUSH_BASE_PATH . '/misc';
    if (drush_get_context('DRUSH_NOCOLOR')) {
      $content = file_get_contents($misc_dir . '/druplicon-no_color.txt');
    }
    else {
      $content = file_get_contents($misc_dir . '/druplicon-color.txt');
    }
    drush_print($content);
  }
}