You are here

function feed_import_base_drush_command in Feed Import 8

Same name and namespace in other branches
  1. 7.3 feed_import_base/feed_import_base.drush.inc \feed_import_base_drush_command()

Implements COMMANDFILE_drush_command()

File

feed_import_base/feed_import_base.drush.inc, line 23
Contains drupal commands for feed import

Code

function feed_import_base_drush_command() {
  $items['feed-import-base-cron'] = array(
    'description' => "Runs feed import cron",
    'arguments' => array(
      'force' => 'Pass force to ignore cron time settings',
    ),
    'aliases' => array(
      'feedcron',
    ),
    'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_LOGIN,
  );
  $items['feed-import-base-feed'] = array(
    'description' => "Imports specified feed",
    'arguments' => array(
      'name' => 'Machine name or id of feed to import',
    ),
    'examples' => array(
      'drush feedimport myfeed' => "Imports feed with machine name myfeed",
    ),
    'aliases' => array(
      'feedimport',
    ),
    'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_LOGIN,
  );
  $items['feed-import-base-list'] = array(
    'description' => "Show all available feeds",
    'aliases' => array(
      'feedlist',
    ),
    'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_LOGIN,
  );
  return $items;
}