function wsdata_drush_command in Web Service Data 7
Implementats hook_drush_command().
File
- ./
wsdata.drush.inc, line 10 - Drush implementation for the wsconfig module.
Code
function wsdata_drush_command() {
$items = array();
$items['wsdata-get-endpoint'] = array(
'description' => dt('Get wsdata endpoint by wsdata config type. This will display the endpoint for the specified type'),
'aliases' => array(
'wsdge',
),
'arguments' => array(
'type' => dt('The type you wish to show the endpoint for, see drush wsdata-list-types.'),
),
'examples' => array(
'drush wsdata-get-endpoint <wsconfig type machine name>' => dt('Get the endpoint for this wsdata config type.'),
),
'drupal dependencies' => array(
'wsconfig',
'wsdata',
),
);
$items['wsdata-set-endpoint'] = array(
'description' => dt('Set wsdata endpoint by wsdata config type. This will set the endpoints for all wsconfig of the specified type'),
'aliases' => array(
'wsdse',
),
'arguments' => array(
'type' => dt('The type you wish to update, for list, drush wsdata-list-types.'),
'endpoint' => dt('The endpoint.'),
),
'examples' => array(
'drush wsdata-set-endpoint <wsconfig type machine name> "http://endpoint/services/rest' => dt('Set the endpoint to http://endpoint/services/rest for this wsdata config type.'),
),
'drupal dependencies' => array(
'wsconfig',
'wsdata',
),
);
$items['wsdata-list-types'] = array(
'arguments' => array(),
'description' => dt('Show all WSConfig Types.'),
'examples' => array(
'drush wsdata-list-types' => dt('Show / list summary of all wsdata endpoints.'),
),
'drupal dependencies' => array(
'wsconfig',
'wsdata',
),
'aliases' => array(
'wsdl',
),
);
$items['wsdata-list'] = array(
'arguments' => array(),
'description' => dt('Show all WSConfigs.'),
'examples' => array(
'drush wsdata-list' => dt('Show / list summary of all WSConfigs.'),
),
'drupal dependencies' => array(
'wsconfig',
'wsdata',
),
'aliases' => array(
'wsdlc',
),
);
$items['wsdata-type-disable'] = array(
'description' => dt('Disabled a WSConfig Type'),
'aliases' => array(
'wsdtd',
),
'arguments' => array(
'type' => dt('The WSConfig type you want to disable, see drush wsdata-list-types.'),
),
'examples' => array(
'drush wsdata-type-disable <wsconfig type machine name>' => dt('Disable the given wsconfig type.'),
),
'drupal dependencies' => array(
'wsconfig',
'wsdata',
),
);
$items['wsdata-type-enable'] = array(
'description' => dt('Enable a WSConfig Type'),
'aliases' => array(
'wsdte',
),
'arguments' => array(
'type' => dt('The WSConfig type you want to enable, see drush wsdata-list-types.'),
),
'examples' => array(
'drush wsdata-type-enable <wsconfig type machine name>' => dt('Disable the given wsconfig type.'),
),
'drupal dependencies' => array(
'wsconfig',
'wsdata',
),
);
return $items;
}