protected function execute(InputInterface $input, OutputInterface $output)
{
$this->detectMagento($output, true);
if (!$input->getOption('format')) {
$this->writeSection($output, 'Magento Stores - Base URLs');
}
$this->initMagento();
foreach (\Mage::app()->getStores() as $store) {
$table[$store->getId()] = array($store->getId(), $store->getCode(), \Mage::getStoreConfig('web/unsecure/base_url', $store), \Mage::getStoreConfig('web/secure/base_url', $store));
}
ksort($table);
$this->getHelper('table')->setHeaders(array('id', 'code', 'unsecure_baseurl', 'secure_baseurl'))->renderByFormat($output, $table, $input->getOption('format'));
}