You are here

function fontyourface_drush_command in @font-your-face 7.2

Implements hook_drush_command().

File

drush/fontyourface.drush.inc, line 28
Drush integration for @font-your-face.

Code

function fontyourface_drush_command() {
  $items = array();
  $items['fyf-status'] = array(
    'callback' => 'fontyourface_fyf_status',
    'drupal dependencies' => array(
      'fontyourface',
    ),
    'description' => 'Displays general @font-your-face status information',
    'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL,
    'aliases' => array(
      'fyfs',
    ),
  );
  $items['fyf-import'] = array(
    'callback' => 'fontyourface_fyf_import',
    'drupal dependencies' => array(
      'fontyourface',
    ),
    'description' => 'Imports fonts from one or more providers',
    'arguments' => array(
      'providers' => '(optional) A space delimited list of providers.',
    ),
    'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL,
    'aliases' => array(
      'fyfi',
    ),
    'examples' => array(
      'drush fyfi' => 'Import fonts from all enabled providers.',
      'drush fyfi google_fonts_api fontdeck' => 'Import fonts from Google Fonts API and Fontdeck.',
    ),
  );
  return $items;
}