You are here

function lockr_drush_command in Lockr 7.3

Same name and namespace in other branches
  1. 8.4 lockr.drush.inc \lockr_drush_command()
  2. 8.2 lockr.drush.inc \lockr_drush_command()
  3. 8.3 lockr.drush.inc \lockr_drush_command()
  4. 7 lockr.drush.inc \lockr_drush_command()
  5. 7.2 lockr.drush.inc \lockr_drush_command()
  6. 4.x lockr.drush.inc \lockr_drush_command()

Implements hook_drush_command().

File

./lockr.drush.inc, line 11
Hooks and callbacks for drush.

Code

function lockr_drush_command() {
  $info['lockdown'] = [
    'description' => 'Patch modules to work with key.',
    'aliases' => [
      'ld',
    ],
    'core' => [
      '7',
    ],
    'scope' => 'site',
  ];
  $info['lockr-register'] = [
    'description' => 'Register a site for Lockr.',
    'aliases' => [
      'lr',
    ],
    'core' => [
      '7',
    ],
    'scope' => 'site',
    'arguments' => [
      'email' => 'The email to register with.',
    ],
    'options' => [
      'password' => 'The password to match given email (if applicable).',
      'keyring-id' => 'The KeyRing ID to register against an existing KeyRing.',
    ],
  ];
  return $info;
}