You are here

function mob_queue_drush_command in Drush Queue Handling 7

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

Implements hook_drush_command().

File

./mob_queue.drush.inc, line 10
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 the queues for mob-queue',
    ),
    '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;
}