You are here

function shariff_drush_command in Shariff Social Media Buttons 7

Implements hook_drush_command().

In this hook, you specify which commands your drush module makes available, what it does and description.

Notice how this structure closely resembles how you define menu hooks.

See 'drush topic docs-commands' for a list of recognized keys.

File

drush/shariff.drush.inc, line 23
drush integration for Shariff.

Code

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

  // The key in the $items array is the name of the command.
  $items['shariff-library'] = array(
    'callback' => 'download_shariff_library',
    'description' => dt('Download and install the shariff library.'),
    'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
    'arguments' => array(
      'path' => dt('Optional. A path where to install the Shariff library. If omitted Drush will use the default location.'),
    ),
    'aliases' => array(
      'shariff',
    ),
  );
  return $items;
}