You are here

function scheduler_drush_command in Scheduler 8

Same name and namespace in other branches
  1. 7 scheduler.drush.inc \scheduler_drush_command()
  2. 2.x scheduler.drush.inc \scheduler_drush_command()

Implements hook_drush_command().

File

./scheduler.drush.inc, line 11
Drush commands for Scheduler.

Code

function scheduler_drush_command() {
  $items = [];
  $items['scheduler-cron'] = [
    'description' => 'Lightweight cron to process scheduler tasks.',
    'core' => [
      '8+',
    ],
    'aliases' => [
      'sch-cron',
    ],
    'category' => 'scheduler',
    'options' => [
      'nomsg' => 'to avoid the "cron completed" message being written to the terminal.',
    ],
  ];
  return $items;
}