You are here

function cacheflush_drush_drush_command in CacheFlush 8

Same name and namespace in other branches
  1. 7.3 modules/cacheflush_drush/cacheflush_drush.drush.inc \cacheflush_drush_drush_command()

Implements hook_drush_command().

File

modules/cacheflush_drush/cacheflush_drush.drush.inc, line 23
Cacheflush Drush implementation.

Code

function cacheflush_drush_drush_command() {
  $items = [];
  $items['cacheflush'] = [
    'description' => dt('Clear cache predefined in cacheflush preset.'),
    'arguments' => [
      'id' => dt('Preset id to run'),
    ],
    'examples' => [
      'Example' => 'drush cacheflush 5',
    ],
    'aliases' => [
      'cf',
    ],
  ];
  return $items;
}