function queue_drush_command

8.0.x queue.drush.inc queue_drush_command()
6.x queue.drush.inc queue_drush_command()
7.x queue.drush.inc queue_drush_command()
5.x queue.drush.inc queue_drush_command()
master queue.drush.inc queue_drush_command()

Implements hook_drush_command().

File

commands/core/queue.drush.inc, line 16

Code

function queue_drush_command() {
  $items['queue-run'] = array(
    'description' => 'Run a specific queue by name',
    'arguments' => array(
      'queue_name' => 'The name of the queue to run, as defined in either hook_queue_info or hook_cron_queue_info.',
    ),
    'required-arguments' => TRUE,
  );
  $items['queue-list'] = array(
    'description' => 'Returns a list of all defined queues',
    'options' => array(
      'pipe' => 'Return a comma delimited list of queues.',
    ),
  );

  return $items;
}