function uikit_drush_command

Implements hook_drush_command().

File

uikit.drush.inc, line 11
Drush integration of UIkit.

Code

function uikit_drush_command() {
  $commands = [];

  $commands ['uikit-starterkit'] = [
    'description' => 'Create a UIkit sub-theme.',
    'arguments' => [
      'machine_name' => '[optional] A machine-readable name for your theme.',
      'name' => 'A human-readable name for your theme.',
    ],
    'aliases' => ['uikit-sk'],
    'options' => [
      'name' => 'A human-readable name for your theme.',
      'machine-name' => '[a-z, 0-9, _] A machine-readable name for your theme.',
      'path' => 'The path where your theme will be created. Defaults to: themes',
      'description' => 'A description of your theme.',
    ],
    'examples' => [
      'drush uikit-sk "Amazing name"' => 'Create a sub-theme, using the default options.',
      'drush uikit-sk zomg_amazing "Amazing name"' => 'Create a sub-theme with a specific machine name.',
      'drush uikit-sk "Amazing name" --path=sites/default/themes --description="So amazing."' => 'Create a sub-theme in the specified directory with a custom description.',
    ],
  ];

  return $commands;
}

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

Log in