You are here

function pcb_drush_command in Permanent Cache Bin 8.2

Same name and namespace in other branches
  1. 8 pcb.drush.inc \pcb_drush_command()

Implements hook_drush_command().

File

./pcb.drush.inc, line 13
Provides drush commands for pcb.

Code

function pcb_drush_command() {
  $commands = [];
  $commands['permanent-cache-bin-flush'] = [
    'description' => 'Flush permanent cache bin.',
    'aliases' => [
      'pcbf',
    ],
    'arguments' => [
      'bin' => 'Bin to flush cache of.',
    ],
    'required-arguments' => TRUE,
    'examples' => [
      'drush pcbf stock' => 'Flush stock bin cache.',
    ],
  ];
  $commands['permanent-cache-bin-flush-all'] = [
    'description' => 'Flush cache for all bins using permanent cache backend.',
    'aliases' => [
      'pcb-flush-all',
    ],
  ];
  return $commands;
}