You are here

function mongodb_drush_help in MongoDB 6

Same name and namespace in other branches
  1. 7 mongodb.drush.inc \mongodb_drush_help()

Implements hook_drush_help().

File

./mongodb.drush.inc, line 65
Provide Drush integration for MongoDB.

Code

function mongodb_drush_help($section) {
  switch ($section) {
    case 'drush:mongodb-conf':
      return dt('Show database connection details.');
    case 'drush:mongodb-connect':
      return dt('A string which connects to the current database.');
    case 'drush:mongodb-cli':
      return dt('Quickly enter the mongodb shell.');

    // TODO.
    case 'drush:mongodb-dump':
      return dt('Prints the whole database to STDOUT or save to a file.');
    case 'drush:mongodb-query':
      return dt("Usage: drush [options] mongodb-query <query>...\n<query> is a single js command. It does not print the result by default, see the example");
  }
}