You are here

function cms_content_sync_developer_drush_command in CMS Content Sync 2.1.x

Same name and namespace in other branches
  1. 8 modules/cms_content_sync_developer/cms_content_sync_developer.drush.inc \cms_content_sync_developer_drush_command()
  2. 2.0.x modules/cms_content_sync_developer/cms_content_sync_developer.drush.inc \cms_content_sync_developer_drush_command()

Implements hook_drush_command().

File

modules/cms_content_sync_developer/cms_content_sync_developer.drush.inc, line 13
Contains Drush commands for Content Sync.

Code

function cms_content_sync_developer_drush_command() {
  $items['content-sync-update-flows'] = [
    'description' => dt('Update all flows'),
    'aliases' => [
      'csuf',
    ],
  ];
  $items['content-sync-force-entity-deletion'] = [
    'description' => dt('   * Kindly ask the Sync Core to pull all entities for a specific flow, or to force pull one specific entity.'),
    'aliases' => [
      'csfed',
    ],
    'required-arguments' => TRUE,
    'arguments' => [
      'entity_type' => 'The entity type the entities should be deleted for.',
    ],
    'options' => [
      'bundle' => 'The bundle the entities should be deleted for.',
      'entity_uuid' => 'The entities uuid that should be deleted.',
    ],
    'examples' => [
      'drush csfed node --entity_uuid="06d1d5b8-5583-4929-9f7c-c85cfe59440b"' => 'Force delete the node having the uuid: "06d1d5b8-5583-4929-9f7c-c85cfe59440b".',
      'drush csfed node --bundle="basic_page"' => 'Force delete all nodes having the bundle basic_page.',
    ],
  ];
  return $items;
}