function tripal_bulk_loader_drush_command
2.x tripal_bulk_loader.drush.inc | tripal_bulk_loader_drush_command() |
3.x tripal_bulk_loader.drush.inc | tripal_bulk_loader_drush_command() |
1.x tripal_bulk_loader.drush.inc | tripal_bulk_loader_drush_command() |
Implements hook_drush_command().
Related topics
File
- tripal_bulk_loader/
tripal_bulk_loader.drush.inc, line 15 - Implements drush integration for this module
Code
function tripal_bulk_loader_drush_command() {
$items = array();
$items['tripal-loader-progress'] = array(
'description' => dt('Display the progress of any running tripal bulk loading job.'),
'aliases' => array('trpload-%'),
);
$items['tripal-loader-view'] = array(
// used by drush help
'description' => dt('Returns the status/details of the specified bulk loading job.'),
'arguments' => array(
'nid' => dt('The Node ID of the bulk Loading Job')
),
'examples' => array(
'Standard Example' => 'drush tripal-loader-view 5433',
),
'aliases' => array('trpload-view')
);
$items['tripal-loader-cancel'] = array(
// used by drush help
'description' => dt('Cancels the specified bulk loading job.'),
'arguments' => array(
'nid' => dt('The Node ID of the bulk Loading Job')
),
'examples' => array(
'Standard Example' => 'drush tripal-loader-cancel 5433',
),
'aliases' => array('trpload-cncl')
);
$items['tripal-loader-submit'] = array(
// used by drush help
'description' => dt('Submit or Re-submit the given bulk loading job.'),
'arguments' => array(
'nid' => dt('The Node ID of the bulk Loading Job')
),
'examples' => array(
'Standard Example' => 'drush tripal-loader-submit 5433',
),
'aliases' => array('trpload-sbmt')
);
$items['tripal-loader-revert'] = array(
// used by drush help
'description' => dt('Revert the records loaded by the last run of the specified loading job. This is only available if the specified loading job is keeping track of inserted IDs.'),
'arguments' => array(
'nid' => dt('The Node ID of the bulk Loading Job')
),
'examples' => array(
'Standard Example' => 'drush tripal-loader-revert 5433',
),
'aliases' => array('trpload-revert')
);
return $items;
}