function sweaver_drush_command in Sweaver 7
Same name and namespace in other branches
- 6 drush/sweaver.drush.inc \sweaver_drush_command()
Implementation of hook_drush_command().
File
- drush/
sweaver.drush.inc, line 27 - Sweaver Drush functions.
Code
function sweaver_drush_command() {
$items = array();
$items['sweaver-edit'] = array(
'callback' => 'sweaver_drush_style',
'description' => dt('Edit the style with your favorite Editor.'),
'arguments' => array(
'style_id' => dt('A style ID'),
),
'aliases' => array(
'swe',
),
);
$items['sweaver-variables'] = array(
'callback' => 'sweaver_drush_variables',
'description' => dt('Set variables for running Sweaver with drush.'),
'arguments' => array(
'type' => dt('The type of variable to store. Currenlty only "editor" or "warning".'),
'value' => dt('The value of the variable. Currently your favorite editor command (+ any arguments if needed) or "true" or "false" for the warning message.'),
),
'aliases' => array(
'swv',
),
);
return $items;
}