You are here

function schema_drush_command in Schema 6

Same name and namespace in other branches
  1. 8 schema.drush.inc \schema_drush_command()
  2. 7 schema.drush.inc \schema_drush_command()

Implementation of hook_drush_command().

File

./schema.drush.inc, line 11
Schema drush commands.

Code

function schema_drush_command() {
  $items = array();

  // the key in the $items array is the name of the command.
  $items['schema-inspect'] = array(
    'description' => "Show the Drupal schema definition for table(s)",
    'arguments' => array(
      'tables' => 'A comma delimited list of table names',
    ),
  );
  $items['schema-describe'] = array(
    'description' => 'Describe the schema(s) defined by a module\'s hook_schema().',
    'core' => array(
      6,
      7,
    ),
    'arguments' => array(
      'module' => 'The name of the module to describe.',
      'optional' => TRUE,
    ),
    'examples' => array(
      'drush schema-describe node' => 'Displays the schema definitions for the node module.',
    ),
  );
  return $items;
}