You are here

function mob_queue_drush_command in Drush Queue Handling 8

Same name and namespace in other branches
  1. 7 mob_queue.drush.inc \mob_queue_drush_command()

Implements hook_drush_command().

File

./mob_queue.drush.inc, line 11
Drush commands for Drush Queue Handling.

Code

function mob_queue_drush_command() {
  $items = array();
  $items['mob-exe-queue'] = array(
    'description' => "Execute mob_queue queued tasks.",
    'examples' => array(
      'drush mob-queue' => 'Go a sprint to finish the tasks in mob_queue queues.',
    ),
    'arguments' => array(
      'time' => dt('Total execution time for this command.'),
    ),
    'options' => array(
      'no-reset-expired' => "Do not reset expired items from the queue table.",
    ),
    'aliases' => array(
      'meq',
    ),
  );
  return $items;
}