function jcarousel_drush_command in jCarousel 8.5
Implements hook_drush_command().
File
- drush/
jcarousel.drush.inc, line 17 - Drush integration for jcarousel.
Code
function jcarousel_drush_command() {
$items = [];
// The key in the $items array is the name of the command.
// No bootstrap.
$items['jcarousel-plugin'] = [
'callback' => 'drush_jcarousel_lib_plugin',
'description' => dt('Download and install the jCarousel plugin.'),
'bootstrap' => DRUSH_BOOTSTRAP_NONE,
'arguments' => [
'path' => dt('Optional. A path where to install the jCarousel plugin. If omitted Drush will use the default location.'),
],
'aliases' => [
'jcarouselplugin',
],
];
$items['jcarousel-swipe-plugin'] = [
'callback' => 'drush_jcarousel_swipe_lib_plugin',
'description' => dt('Download and install the jCarousel swipe plugin.'),
'bootstrap' => DRUSH_BOOTSTRAP_NONE,
'arguments' => [
'path' => dt('Optional. A path where to install the jCarousel swipe plugin. If omitted Drush will use the default location.'),
],
'aliases' => [
'jcarouselswipeplugin',
],
];
return $items;
}