You are here

function patterns_drush_help in Patterns 7.2

Same name and namespace in other branches
  1. 6.2 patterns.drush.inc \patterns_drush_help()
  2. 7 patterns.drush.inc \patterns_drush_help()

Implements hook_drush_help().

File

./patterns.drush.inc, line 15
Drush Patterns module commands

Code

function patterns_drush_help($section) {
  switch ($section) {
    case 'drush:patterns':
      return dt("List all available patterns. Patterns in the trash bin do not appear in this list.");
      break;
    case 'drush:patterns-info':
      return dt("Show all info on a given pattern.");
      break;
    case 'drush:patterns-quickrun':
      return dt("Read a pattern file and run it without saving it into the database.");
      break;
    case 'drush:patterns-run':
      return dt('Run a pattern file. If the pattern is not found in the database, it will try to import it.');
      break;
    case 'drush:patterns-import':
      return dt('Import a pattern file into the database.');
      break;
    case 'drush:patterns-export':
      $text = "Export data from the patterns components to file, zip archive, or database ([file|db|zip]). ";
      $text .= "Zip compression requires ZipArchive class to be installed.";
      $text .= "It is possible to select which components to extract following the syntax: 'component.tag.export'. ";
      $text .= "The relative path of extracted files is computed from the Drupal root directory. Absolute paths can be used to point to external paths. ";
      return dt($text);
      break;
    case 'drush:patterns-test-ci':
      return dt('Starts the automated tests for Patterns and return an exit value for continuos integration.');
      break;
  }
}