function browscap_drush_command in Browscap 7.2
Implements hook_drush_command().
File
- ./
browscap.drush.inc, line 11 - Browscap Drush integration.
Code
function browscap_drush_command() {
$items['browscap-import'] = array(
'description' => 'Imports/updates browscap data via HTTP.',
);
$items['browscap-get-browser'] = array(
'description' => dt('Show browser information for a given user agent.'),
'arguments' => array(
'user agent' => 'Quote-enclosed user agent',
),
'required-arguments' => TRUE,
'examples' => array(
"drush browscap-get-browser 'Mozilla/5.0 (BlackBerry; U; BlackBerry 9700; en) AppleWebKit/534.8+ (KHTML, like Gecko) Version/6.0.0.448 Mobile Safari/534.8+'",
),
'outputformat' => array(
'default' => 'json',
),
);
return $items;
}