You are here

function omega_tools_drush_command in Omega Tools 7.3

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

Implements hook_drush_command().

File

includes/omega_tools.drush.inc, line 6

Code

function omega_tools_drush_command() {
  $items = array();
  $items['omega-subtheme'] = array(
    'description' => 'Create a Omega subtheme.',
    'arguments' => array(
      'name' => 'The name of your subtheme.',
    ),
    'options' => array(
      'destination' => 'The destination of your subtheme. Defaults to "all" (sites/all/themes).',
      'machine_name' => 'The machine-readable name of your subtheme. This will be auto-generated from the human-readable name if ommited.',
      'base' => 'The base theme that you want to build on. Defaults to "Omega" or the base theme of the starterkit (if provided).',
      'starterkit' => 'The starterkit that your subtheme should use. It must have the same base theme as your subtheme. Defaults to "starterkit_omega_html5" if "--base" is not set either.',
      'enable' => 'Automatically enable the subtheme after creation.',
      'set-default' => 'Automatically enable the subtheme after creation and make it the default theme.',
    ),
    'examples' => array(
      'drush omega-subtheme "My Theme"' => 'Creates a Omega subtheme called "My Theme".',
      'drush omega-subtheme "My Theme" --destination=example.com' => 'Creates a Omega subtheme called "My Theme" in sites/example.com/themes.',
      'drush omega-subtheme "My Theme" --starterkit=starterkit_omega_html5' => 'Uses the HTML5 starterkit to create a Omega subtheme called "My Theme" in sites/all/themes (default).',
      'drush omega-subtheme "My Theme" --base=alpha' => 'Creates a Alpha subtheme called "My Theme" without using a starterkit.',
    ),
  );
  return $items;
}