protected function execute(InputInterface $input, OutputInterface $output)
{
$this->detectMagento($output, true);
if ($input->getOption('format') === null) {
$this->writeSection($output, 'Magento Modules');
}
$this->initMagento();
$modules = $this->filterModules($input);
if (!count($modules)) {
$output->writeln("No modules match the specified criteria.");
return;
}
/** @var TableHelper $table */
$table = $this->getHelper('table');
$table->setHeaders(array('codePool', 'Name', 'Version', 'Status'))->renderByFormat($output, iterator_to_array($modules), $input->getOption('format'));
}