You are here

function advagg_drush_command in Advanced CSS/JS Aggregation 8.2

Same name and namespace in other branches
  1. 8.4 advagg.drush.inc \advagg_drush_command()
  2. 8.3 advagg.drush.inc \advagg_drush_command()
  3. 7.2 advagg.drush.inc \advagg_drush_command()

Implements hook_drush_command().

File

./advagg.drush.inc, line 38
Drush commands for Advanced CSS/JS Aggregation.

Code

function advagg_drush_command() {
  $items = [];
  $items['advagg-cron'] = [
    'description' => dt('Run the advagg cron hook.'),
    'examples' => [
      'Standard example' => 'drush advagg-cron',
    ],
    'aliases' => [
      'advagg-c',
    ],
  ];
  $items['advagg-clear-db-cache'] = [
    'description' => dt('Remove all entries from the advagg cache bins.'),
    'examples' => [
      'Standard example' => 'drush advagg-clear-db-cache',
    ],
    'aliases' => [
      'advagg-cdc',
    ],
  ];
  $items['advagg-clear-all-files'] = [
    'description' => dt('Remove all generated files.'),
    'examples' => [
      'Standard example' => 'drush advagg-clear-all-files',
    ],
    'aliases' => [
      'advagg-caf',
    ],
  ];
  $items['advagg-force-new-aggregates'] = [
    'description' => dt('Force the creation of all new aggregates by incrementing a global counter.'),
    'examples' => [
      'Standard example' => 'drush advagg-force-new-aggregates',
    ],
    'aliases' => [
      'advagg-fna',
    ],
  ];
  return $items;
}