You are here

function forena_drush_command in Forena Reports 8

Same name and namespace in other branches
  1. 7.5 forena.drush.inc \forena_drush_command()
  2. 7.3 forena.drush.inc \forena_drush_command()
  3. 7.4 forena.drush.inc \forena_drush_command()

@file forena.drush.inc Implementation of drush command hook.

File

./forena.drush.inc, line 6
forena.drush.inc Implementation of drush command hook.

Code

function forena_drush_command() {
  $items = array();
  $items['forena-deliver-reports'] = array(
    'description' => 'Forena Revert Delivered module provided forena reports',
    'examples' => array(
      'drush frxrevert',
    ),
    'aliases' => array(
      'frxcp',
      'frxrevert',
    ),
  );
  $items['forena-report'] = array(
    'description' => 'Render a report',
    'arguments' => array(
      'report_uri' => 'The name of the report to render.  Include parameters as url parameters to the report as you would see them on the url',
      'filename' => 'The file to write the report data to',
    ),
    'options' => array(
      'language',
    ),
    'aliases' => array(
      'frx',
    ),
    'examples' => array(
      'drush forena-report sample/states.html states.html' => 'Export an html report as a simple table',
      "drush forena-report 'sample/user_distribution_simple.xml?state=wa wa.xml'" => 'Export the states as an xml for washington sate',
    ),
  );
  return $items;
}