public function actionIndex($commandName)
 {
     try {
         $currentCommand = CommandFactory::getCommand($commandName);
         Messager::getInstance()->confirm('Are you sure you want to do this? Type "yes" to continue', Messager::WARNING);
         $currentCommand->execute();
     } catch (\Exception $e) {
         ExceptionHandlerFactory::getHandlerViaException($e)->handle();
     }
 }
 public function runRelationsCommands()
 {
     foreach ($this->relationCommandStorage as $moduleName => $command) {
         try {
             $processName = $this->commandStrategy->getName();
             Messager::getInstance()->showMessage($processName . ' relation "' . $moduleName . "'");
             $command->execute();
         } catch (\Exception $e) {
             ExceptionHandlerFactory::getHandlerViaException($e)->handle();
         }
     }
 }