You are here

function checklistapi_drush_command in Checklist API 7

Implements hook_drush_command().

File

./checklistapi.drush.inc, line 11
Drush commands for the Checklist API module.

Code

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

  // Table formatting isn't available until Drush 6.
  if (function_exists('drush_format_table')) {
    $items['checklistapi-list'] = array(
      'aliases' => array(
        'capi-list',
        'capil',
      ),
      'description' => 'Get an overview of your installed checklists with progress details.',
    );
    $items['checklistapi-info'] = array(
      'aliases' => array(
        'capi-info',
        'capii',
      ),
      'description' => 'Show detailed info for a given checklist.',
      'arguments' => array(
        'checklist' => 'The checklist machine name, e.g., "example_checklist".',
      ),
      'required-arguments' => TRUE,
    );
  }
  return $items;
}