public function run()
 {
     $arguments = $this->args->getArguments();
     $commandName = $arguments[0];
     if (!array_key_exists($commandName, $this->commands)) {
         $this->presenter->write("Command '" . $commandName . "' not found.");
         return;
     }
     /** @var IFactory $commandFactory */
     $commandFactory = $this->commands[$commandName];
     /** @var ICommand $command */
     $command = $commandFactory->createInstance();
     $command->execute();
 }
 public function runningMigration($number, $count)
 {
     $this->consolePresenter->write("Running migration " . $number . " of " . $count . ".");
 }
 public function printCommandInfo($command, $desc)
 {
     $this->consolePresenter->write($command . '     ' . $desc);
 }