You are here

function search_api_grouping_drush_command in Search API Grouping 7.2

Implements hook_drush_command().

File

./search_api_grouping.drush.inc, line 10
Drush commands for search api denormalized entity

Code

function search_api_grouping_drush_command() {
  $items = array();
  $items['search-api-grouping-generate'] = array(
    'description' => 'Generate the permutations of the denormalized entities.',
    'examples' => array(
      'search-api-grouping-generate' => dt('Generate the permutations of the denormalized entities.'),
      'drush sapi-gg' => dt('Alias to generate the permutations of the denormalized entities.'),
    ),
    'arguments' => array(
      'index_id' => dt('The numeric ID or machine name of an index.'),
    ),
    'aliases' => array(
      'sapi-gg',
    ),
  );
  $items['search-api-grouping-clean-tracking-table'] = array(
    'description' => 'Deletes orphaned ids from the tracking table.',
    'examples' => array(
      'search-api-grouping-clean-tracking-table' => dt('Deletes orphaned ids from the tracking table.'),
      'drush sapi-gct' => dt('Alias to deletes orphaned ids from the tracking table.'),
    ),
    'arguments' => array(
      'index_id' => dt('The numeric ID or machine name of an index.'),
    ),
    'aliases' => array(
      'sapi-gct',
    ),
  );
  $items['search-api-grouping-process-permutation-queue'] = array(
    'description' => 'Processes the queue to generate permutations.',
    'examples' => array(
      'search-api-grouping-process-permutation-queue' => dt('Processes the queue to generate permutations.'),
      'drush sapi-gpq' => dt('Alias to processes the queue to generate permutations.'),
    ),
    'arguments' => array(
      'timeout' => dt('The time limit on seconds. 0 removes the time limit.'),
    ),
    'aliases' => array(
      'sapi-gpq',
    ),
  );
  return $items;
}