diff --git a/app/src/Command/GenerateMigrations.php b/app/src/Command/GenerateMigrations.php new file mode 100644 index 0000000..13e2b04 --- /dev/null +++ b/app/src/Command/GenerateMigrations.php @@ -0,0 +1,34 @@ +addOption('dry-run', 'd', Console\Input\InputOption::VALUE_OPTIONAL, default: false); + } + + public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int + { + $io = new Console\Style\SymfonyStyle($input, $output); + $io->title('Generate Migrations'); + + $dryRun = $input->getOption('dry-run'); + + $this->migrationGenerator->generate($io, $dryRun); + + return Console\Command\Command::SUCCESS; + } +} \ No newline at end of file