File tree 10 files changed +18
-524
lines changed
10 files changed +18
-524
lines changed Original file line number Diff line number Diff line change 1
- # deprecation-detector
2
- /.rules
3
-
4
1
# Composer
5
2
/vendor
6
3
7
- # Binaries
8
- /box.phar
9
- /console.phar
10
- /composer.phar
11
- /drupal.phar
12
- /drupal.phar.version
13
-
14
- # Test
15
- /phpunit.xml
16
-
17
4
# Project
18
- extend.config.yml
19
- extend.services.yml
5
+ extend.console. config.yml
6
+ extend.console. services.yml
Original file line number Diff line number Diff line change 1
- # Drupal Console extend
1
+ # Drupal Console Extend
2
2
3
- Instructions to extend Drupal Console adding commands globally.
3
+ Composer template and instructions to extend Drupal Console adding commands globally.
4
4
5
5
### Create ` ~/.console/ ` directory
6
6
Execute the ` init ` command and select ` /Users/USER_NAME/.console/ ` when asked for destination.
7
7
```
8
8
drupal init
9
9
```
10
- NOTES:
11
- * For instructions about installing the [ Drupal Console Launcher] ( https://github.com/hechoendrupal/DrupalConsole/#update-drupalconsole-launcher )
10
+ NOTES: For instructions about installing the [ Drupal Console Launcher] ( https://github.com/hechoendrupal/DrupalConsole/#update-drupalconsole-launcher ) .
12
11
13
12
### Install this project:
14
13
```
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " drupal/console-extend" ,
3
- "description" : " Drupal Console Extend" ,
3
+ "description" : " Drupal Console Extend Template " ,
4
4
"license" : " GPL-2.0+" ,
5
5
"authors" : [
6
6
{
9
9
}
10
10
],
11
11
"require" : {
12
- "symfony/yaml" : " >=2.7 <3.0 " ,
13
- "symfony/finder " : " >=2.7 <3.0 "
12
+ "drupal/console-extend-plugin" : " dev-master " ,
13
+ "drupal/console-extend-example " : " dev-master "
14
14
},
15
15
"minimum-stability" : " dev" ,
16
- "prefer-stable" : true ,
17
- "autoload" : {
18
- "psr-4" : {"Drupal\\ Console\\ Extend\\ " : " src" }
19
- },
20
- "require-dev" : {
21
- "composer/installers" : " ^1.2"
22
- },
23
- "scripts" : {
24
- "post-install-cmd" : [
25
- " Drupal\\ Console\\ Extend\\ Plugin\\ ScriptHandler::dump"
26
- ],
27
- "post-update-cmd" : [
28
- " Drupal\\ Console\\ Extend\\ Plugin\\ ScriptHandler::dump"
29
- ]
30
- }
16
+ "prefer-stable" : true
31
17
}
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- # services:
2
- # console.extend_example :
3
- # class: \Drupal\Console\Extend\Command\ExampleCommand
4
- # tags:
5
- # - { name: drupal.command }
1
+ services :
2
+ console.extend_global :
3
+ class : \Drupal\Console\Extend\Command\GlobalCommand
4
+ tags :
5
+ - { name: drupal.command }
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ application:
60
60
enabled : false
61
61
exception : false
62
62
phpunit :
63
- enabled : false
63
+ enabled : true
64
64
exception : true
65
65
file :
66
66
configuration : phpunit.xml.dist
Original file line number Diff line number Diff line change 2
2
3
3
/**
4
4
* @file
5
- * Contains \Drupal\Console\Extend\Command\ExampleCommand
5
+ * Contains \Drupal\Console\Extend\Command\GlobalCommand
6
6
*/
7
7
8
8
namespace Drupal \Console \Extend \Command ;
18
18
*
19
19
* @package Drupal\Console\Extend\Command
20
20
*/
21
- class ExampleCommand extends Command
21
+ class GlobalCommand extends Command
22
22
{
23
23
use CommandTrait;
24
24
/**
@@ -35,7 +35,7 @@ public function __construct()
35
35
36
36
protected function configure ()
37
37
{
38
- $ this ->setName ('extend:example ' )
38
+ $ this ->setName ('extend:global ' )
39
39
->setDescription ('Drupal Console global example ' );
40
40
}
41
41
You can’t perform that action at this time.
0 commit comments