Skip to content

Commit ca78ef4

Browse files
committed
WIP
Signed-off-by: alexmerlin <alex.merlin.1985@gmail.com>
1 parent 35c664c commit ca78ef4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Maker.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace Dot\Maker;
66

77
use Dot\Maker\IO\Output;
8+
use Dot\Maker\Type\Help;
89
use Dot\Maker\Type\Module;
910
use Dot\Maker\Type\ModuleInterface;
1011
use Dot\Maker\Type\TypeEnum;
@@ -51,6 +52,11 @@ public function __invoke(array $arguments): int
5152
$instance = new ($component)($fileSystem, $context, $config);
5253
assert($instance instanceof TypeInterface);
5354

55+
if ($instance instanceof Help) {
56+
$instance();
57+
exit;
58+
}
59+
5460
Output::info(sprintf('Detected project type: %s', $context->getProjectType()));
5561

5662
if (! $instance->isModule()) {

0 commit comments

Comments
 (0)