Skip to content

Commit

Permalink
Artisan make:module (deprecated) should prompt for input (#725)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamjcooper authored Mar 27, 2021
1 parent a29a029 commit a5b3ffc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Commands/ModuleMakeDeprecated.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,15 @@ class ModuleMakeDeprecated extends Command
*/
public function handle()
{
$options = collect($this->options());

if (!$options['no-interaction']) {
$options = $options->except('no-interaction');
}

$this->call('twill:make:module', [
'moduleName' => $this->argument('moduleName'),
] + collect($this->options())->mapWithKeys(function ($value, $key) {
] + $options->mapWithKeys(function ($value, $key) {
return ["--{$key}" => $value];
})->toArray());
}
Expand Down

0 comments on commit a5b3ffc

Please sign in to comment.