You are here

function javascript_libraries_drush_command in JavaScript Libraries Manager 7

Implements hook_drush_command().

File

./javascript_libraries.drush.inc, line 11
Drush commands for managing JavaScript libraries.

Code

function javascript_libraries_drush_command() {
  $items['jslib-switch-url'] = array(
    'description' => 'Switches the URL of an external JavaScript library.',
    'arguments' => array(
      'current_url' => 'The current URL of the library.',
      'new_url' => 'The new URL of the library.',
    ),
    'examples' => array(
      'drush jslib-switch-url http://www.example.com/js/somelibrary-v1.js http://www.example.com/js/somelibrary-v2.js' => 'Switches the site to use a new version of an external JavaScript library hosted at example.com.',
    ),
  );
  return $items;
}