You are here

function fastly_drush_command in Fastly 8.3

Implements hook_drush_command().

File

./fastly.drush.inc, line 11
Provides drush commands for Fastly related operations.

Code

function fastly_drush_command() {
  $items = [];
  $items['fastly-purge-all'] = [
    'description' => 'Purge all fastly caches.',
    'arguments' => [
      'tags' => 'An comma-separated list of cache tags or hashes to purge, or leave empty to purge all.',
    ],
    'drupal dependencies' => [
      'fastly',
    ],
    'aliases' => [
      'fastly:purge',
    ],
  ];
  $items['fastly-purge-url'] = [
    'description' => 'Purge URL from fastly caches.',
    'arguments' => [
      'url' => 'A full URL to purge from Fastly',
    ],
    'drupal dependencies' => [
      'fastly',
    ],
    'aliases' => [
      'fastly:purge-url',
    ],
  ];
  return $items;
}