You are here

function composer_manager_drush_command in Composer Manager 6.2

Same name and namespace in other branches
  1. 6 composer_manager.drush.inc \composer_manager_drush_command()
  2. 7.2 composer_manager.drush.inc \composer_manager_drush_command()
  3. 7 composer_manager.drush.inc \composer_manager_drush_command()

Implements hook_drush_command().

File

./composer_manager.drush.inc, line 11
Drush hook implementations for the Composer Manager module.

Code

function composer_manager_drush_command() {
  $items = array();
  $items['composer-manager'] = array(
    'description' => 'Executes a composer command in the directory containing the composer.json file.',
    'allow-additional-options' => TRUE,
    'aliases' => array(
      'composer-execute',
    ),
    'arguments' => array(
      'command' => 'The command to run through the Composer Manager composer.json file. Defaults to "install".',
    ),
  );
  $items['composer-json-rebuild'] = array(
    'description' => 'Rebuilds the consolidated composer.json file.',
    'allow-additional-options' => TRUE,
    'aliases' => array(
      'composer-rebuild',
      'composer-rebuild-file',
    ),
  );
  return $items;
}