You are here

function mailchimp_ecommerce_drush_command in Mailchimp E-Commerce 7

Same name and namespace in other branches
  1. 8 mailchimp_ecommerce.drush.inc \mailchimp_ecommerce_drush_command()

Implements hook_drush_command().

File

includes/mailchimp_ecommerce.drush.inc, line 6

Code

function mailchimp_ecommerce_drush_command() {
  $commands = [];
  $commands['mc-ecommerce-get-stores'] = [
    'description' => 'Gets stores attached to the currently set Mailchimp API key.',
    'aliases' => [
      'mcstores',
    ],
  ];
  $commands['mc-ecommerce-get-orders'] = [
    'description' => 'Gets orders attached to a given store ID.',
    'aliases' => [
      'mcorders',
    ],
    'options' => [
      'store_id' => 'ID of the store as defined by Mailchimp.',
    ],
  ];
  return $commands;
}