You are here

function tinypng_drush_command in TinyPNG 7

Implements hook_drush_command().

File

./tinypng.drush.inc, line 16
Drush integration for TinyPNG.

Code

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

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