function acsf_variables_drush_command in Acquia Cloud Site Factory Connector 8
Implements hook_drush_command().
File
- acsf_variables/
acsf_variables.drush.inc, line 11 - Provides drush commands for the acsf_variables module.
Code
function acsf_variables_drush_command() {
return [
'acsf-vget' => [
'description' => dt('Retrieves a named ACSF variable.'),
'arguments' => [
'name' => dt('The name of the variable to retrieve.'),
],
'options' => [
'format' => [
'description' => dt('Format to output the object. Use "var_export" for var_export (default), and "json" for JSON.'),
'example-value' => 'json',
],
'exact' => dt('Only retrieve the exact variable name specified.'),
],
],
'acsf-vset' => [
'description' => dt('Sets a named ACSF variable with an optional group.'),
'arguments' => [
'name' => dt('The name of the variable to set.'),
'value' => dt('The value of the variable to set.'),
],
'options' => [
'group' => dt('An optional group name for the variable.'),
],
],
'acsf-vget-group' => [
'description' => dt('Retrieves a group of variables.'),
'arguments' => [
'group' => dt('The group name of the variable to retrieve.'),
],
'options' => [
'format' => [
'description' => dt('Format to output the object. Use "var_export" for var_export (default), and "json" for JSON.'),
'example-value' => 'json',
],
],
],
'acsf-vdel' => [
'description' => dt('Deletes a named variable.'),
'arguments' => [
'name' => dt('The name of the variable to delete.'),
],
],
'acsf-info' => [
'description' => dt('Retrieves info about a site.'),
],
];
}