You are here

function fontawesome_drush_command in Font Awesome Icons 7.3

Same name and namespace in other branches
  1. 7 drush/fontawesome.drush.inc \fontawesome_drush_command()
  2. 7.2 drush/fontawesome.drush.inc \fontawesome_drush_command()

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 also

drush_parse_command()

File

drush/fontawesome.drush.inc, line 20
Drush integration for fontawesome.

Code

function fontawesome_drush_command() {
  $items = array();
  $items['fa-download'] = array(
    'callback' => 'fontawesome_drush_lib_download',
    'description' => dt('Downloads the required Fontawesome library from https://github.com/FortAwesome/Font-Awesome'),
    'aliases' => array(
      'fadl',
    ),
    'arguments' => array(
      'path' => dt('Optional. A path to the fontawesome module. If omitted Drush will use the default location.'),
    ),
  );
  return $items;
}