Skip to content

Commit 9feb84a

Browse files
committed
MahoCLI create-command: output command includes initMaho() now
1 parent 08f82d0 commit 9feb84a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/MahoCLI/Commands/CreateCommand.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ private function generateCommandContent(
120120
121121
namespace MahoCLI\Commands;
122122
123+
use Mage;
123124
use Symfony\Component\Console\Attribute\AsCommand;
124125
use Symfony\Component\Console\Command\Command;
125126
use Symfony\Component\Console\Input\InputInterface;
@@ -134,6 +135,10 @@ class $className extends BaseMahoCommand
134135
#[\Override]
135136
protected function execute(InputInterface \$input, OutputInterface \$output): int
136137
{
138+
\$this->initMaho();
139+
140+
// Your custom logic here
141+
137142
\$output->writeln('Command executed successfully!');
138143
return Command::SUCCESS;
139144
}

0 commit comments

Comments
 (0)