protected function execute(InputInterface $input, OutputInterface $output)
{
$this->detectMagento($output, true);
$this->initMagento();
$templates = $this->findEmailTemplates();
if (!empty($templates)) {
$this->getHelper('table')->setHeaders(array('id', 'Name', 'Scope', 'Scope Id', 'Path'))->renderByFormat($output, $templates, $input->getOption('format'));
} else {
$output->writeln("No transactional email templates stored in the database.");
}
}