// @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmGeneration
if (!$this->confirmGeneration($output)) {
- return;
+ return 1;
}
$module = $input->getOption('module');
$this->generator->generate($module, $name, $class);
$this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']);
+
+ return 0;
}
/**