protected function execute(InputInterface $input, OutputInterface $output) { try { $output->writeln('<info>- ' . $input->getArgument('langDir') . '</info>'); $compare = new Compare($input->getArgument('langDir'), $input->getArgument('devLang')); foreach ($compare->getNotes() as $note) { $output->writeln('<fg=' . $note[1] . '>' . $note[0] . '</fg=' . $note[1] . '>'); } } catch (Exception $ex) { $output->writeln('<fg=red>' . $ex->getMessage() . '</fg=red>'); } }
protected function execute(InputInterface $input, OutputInterface $output) { try { foreach (['modules/backend/lang', 'modules/cms/lang', 'modules/system/lang'] as $langDir) { $output->writeln('<info>- ' . $langDir . '</info>'); $compare = new Compare($langDir, $input->getArgument('devLang')); foreach ($compare->getNotes() as $note) { $output->writeln('<fg=' . $note[1] . '>' . $note[0] . '</fg=' . $note[1] . '>'); } $output->write("\n"); } } catch (Exception $ex) { $output->writeln('<fg=red>' . $ex->getMessage() . '</fg=red>'); } }