function scheduler_drush_command in Scheduler 2.x
Same name and namespace in other branches
- 8 scheduler.drush.inc \scheduler_drush_command()
- 7 scheduler.drush.inc \scheduler_drush_command()
Implements hook_drush_command().
File
- ./
scheduler.drush.inc, line 13 - Drush 8 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.',
],
];
$items['scheduler-entity-update'] = [
'description' => 'Entity Update - Add missing Scheduler db fields for entities covered by plugins.',
'core' => [
'8+',
],
'aliases' => [
'sch-ent-upd',
],
'category' => 'scheduler',
];
return $items;
}