You are here

function minifyjs_drush_command in Minify JS 7

Same name and namespace in other branches
  1. 8 minifyjs.drush.inc \minifyjs_drush_command()

Implements hook_drush_command().

File

./minifyjs.drush.inc, line 6

Code

function minifyjs_drush_command() {
  $commands = array();
  $commands['minify-js'] = array(
    'description' => 'Drush command to minify all JS files.',
    'aliases' => array(
      'minifyjs',
    ),
    'examples' => array(
      'drush minify-js' => 'Minify all JS files.',
    ),
  );
  $commands['minify-js-skip'] = array(
    'description' => 'Drush command to minify all JS files that are not currently minified.',
    'aliases' => array(
      'minifyjslite',
    ),
    'examples' => array(
      'drush minify-js-skip' => 'Minify all JS files that are not currently minified.',
    ),
  );
  $commands['scan-js'] = array(
    'description' => 'Drush command to find all JS files.',
    'aliases' => array(
      'scanjs',
    ),
    'examples' => array(
      'drush scan-js' => 'Find all JS files.',
    ),
  );
  return $commands;
}