We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08f82d0 commit 9feb84aCopy full SHA for 9feb84a
lib/MahoCLI/Commands/CreateCommand.php
@@ -120,6 +120,7 @@ private function generateCommandContent(
120
121
namespace MahoCLI\Commands;
122
123
+use Mage;
124
use Symfony\Component\Console\Attribute\AsCommand;
125
use Symfony\Component\Console\Command\Command;
126
use Symfony\Component\Console\Input\InputInterface;
@@ -134,6 +135,10 @@ class $className extends BaseMahoCommand
134
135
#[\Override]
136
protected function execute(InputInterface \$input, OutputInterface \$output): int
137
{
138
+ \$this->initMaho();
139
+
140
+ // Your custom logic here
141
142
\$output->writeln('Command executed successfully!');
143
return Command::SUCCESS;
144
}
0 commit comments