You are here

function addtohomescreen_drush_command in Add to homescreen 8

Same name and namespace in other branches
  1. 7 addtohomescreen.drush.inc \addtohomescreen_drush_command()

Implements hook_drush_command().

File

./addtohomescreen.drush.inc, line 17
Drush integration for addtohomescreen.

Code

function addtohomescreen_drush_command() {
  $items = [];

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