-
Notifications
You must be signed in to change notification settings - Fork 2
/
DrushDefinition.php
49 lines (44 loc) · 1 KB
/
DrushDefinition.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* @file
*/
namespace CW\Drush;
/**
* Class DrushDefinition
*
* @package CW\Drush
*
* Drush command definition.
*/
class DrushDefinition {
// Commands.
const COMMAND_SCAFFOLD_ENTITY_CONTROLLER = 'cwtool-scaffold-entity-controller';
/**
* Implements hook_drush_command().
*
* @return array
*/
public static function commandInfo() {
return [
self::COMMAND_SCAFFOLD_ENTITY_CONTROLLER => [
'description' => 'Creates a boilerplate entity controller.',
'arguments' => [
'entity_type' => 'Entity type (node, user, file, taxonomy_term, field_collection)',
'bundle' => 'Bundle',
],
'options' => [
'namespace' => [
'description' => 'Namespace for the controller class.',
'example-value' => 'Corp\\Vendor',
],
],
'examples' => [
'basic' => 'drush cwt-sc-ctrl node blog',
],
'aliases' => [
'cwt-sc-ctrl',
],
],
];
}
}