You are here

function uc_stripe_drush_command in Ubercart Stripe 7.2

Same name and namespace in other branches
  1. 6.2 uc_stripe.drush.inc \uc_stripe_drush_command()
  2. 7.3 uc_stripe.drush.inc \uc_stripe_drush_command()

Implements hook_drush_command().

Return value

An associative array describing your command(s).

File

./uc_stripe.drush.inc, line 15
Delete legacy uc_stripe subscriptions that were created by v1.

Code

function uc_stripe_drush_command() {
  $items = array();
  $items['subscription-cancel'] = array(
    'description' => "Delete subscriptions created by uc_stripe v1 and existing in uc_recurring_stripe table.",
    'arguments' => array(
      'order_id' => 'Order ID from uc_stripe_recurring table',
    ),
    'options' => array(
      'dry-run' => 'Dry run - does not actually execute, but show what would be done',
    ),
    'examples' => array(
      'drush subscription-cancel',
      'drush subscription-cancel --dry-run',
      'drush subscription-cancel <order_id>',
    ),
    'aliases' => array(
      'subcancel',
    ),
  );
  return $items;
}