Skip to content

Commit fa1eb5b

Browse files
committed
Add 'full' option in generator
1 parent dcc32ee commit fa1eb5b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Console/Generators/MakeModuleCommand.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ class MakeModuleCommand extends Command
1717
*/
1818
protected $signature = 'make:module
1919
{slug : The slug of the module}
20-
{--normal : Generate a normal module}';
20+
{--normal : Generate a normal module}
21+
{--full : Generate a full module}';
2122

2223
/**
2324
* The console command description.
@@ -176,6 +177,8 @@ protected function generateModule()
176177

177178
if($this->option('normal')) :
178179
$structure = 'normal';
180+
elseif($this->option('full')):
181+
$structure = 'full';
179182
endif;
180183

181184
$source = __DIR__ . "/../../../structure/{$structure}";
@@ -260,7 +263,8 @@ protected function replacePlaceholders($contents)
260263
protected function getOptions()
261264
{
262265
return [
263-
['normal', 'n', InputOption::VALUE_NONE, 'Normal Module'],
266+
['normal', 'n', InputOption::VALUE_NONE, 'Normal Module Structure'],
267+
['full', 'f', InputOption::VALUE_NONE, 'Full Module Structure'],
264268
];
265269
}
266270

0 commit comments

Comments
 (0)