You are here

function relation_drush_command in Relation 8

Same name and namespace in other branches
  1. 8.2 relation.drush.inc \relation_drush_command()
  2. 7 relation.drush.inc \relation_drush_command()

Implements hook_drush_command().

File

./relation.drush.inc, line 14
Drush integration for the relation module.

Code

function relation_drush_command() {
  $items['relation-generate'] = array(
    'description' => dt('Generates relations.'),
    'arguments' => array(
      'number_relations' => dt('The number of relations to generate.'),
    ),
    'options' => array(
      'kill' => 'Delete all relations before generating new ones.',
      'types' => 'A comma delimited list of relation types to create.',
    ),
    'aliases' => array(
      'genrel',
    ),
  );
  return $items;
}