You are here

function prebid_drush_command in Doubleclick for Publishers (DFP) 7.2

Implementation of hook_drush_command().

File

prebid/prebid.drush.inc, line 25
prebid.drush.inc

Code

function prebid_drush_command() {
  $items = array();
  $items['prebid-clone'] = array(
    'description' => 'Clone the Prebid.js library.',
    'examples' => array(
      'drush prebid-clone 1.23.0' => 'Clone the Prebid.js library from Github at tag 1.23.0',
    ),
    'arguments' => array(
      'tag' => 'The tag for the version you need.',
    ),
    'required-arguments' => 1,
    'callback' => 'drush_prebid_clone',
    'aliases' => array(
      'pc',
    ),
  );
  $items['prebid-build'] = array(
    'description' => 'Build a custom version of the Prebid.js library.\\n
    You will need node and npm installed to build the prebid.js file.',
    'examples' => array(
      'drush prebid-build ixBidAdapter,openxBidAdapter,rubiconBidAdapter' => 'Build a bundle with these bid adapters.',
    ),
    'arguments' => array(
      'adapters' => 'You must supply a comma separated list of adapters. e.g., ixBidAdapter,openxBidAdapter,rubiconBidAdapter',
    ),
    'options' => array(
      'dev' => 'Builds an un-minified version for debugging.',
    ),
    'required-arguments' => 1,
    'callback' => 'drush_prebid_build',
    'aliases' => array(
      'pb',
    ),
  );
  $items['prebid-add-library'] = array(
    'description' => 'Move the prebid library to sites/all/libraries/',
    'examples' => array(
      'drush prebid-add-library' => 'Move the generated prebid.js file to libraries.',
    ),
    'callback' => 'drush_prebid_add_library',
    'aliases' => array(
      'pal',
    ),
  );
  return $items;
}