protected function execute(InputInterface $input, OutputInterface $output)
{
$this->detectMagento($output, true);
if (!$this->initMagento()) {
return;
}
$cacheTypes = $this->_getCacheModel()->getTypes();
$table = array();
foreach ($cacheTypes as $cacheCode => $cacheInfo) {
$table[] = array($cacheCode, $cacheInfo['status'] ? 'enabled' : 'disabled');
}
$this->getHelper('table')->setHeaders(array('code', 'status'))->renderByFormat($output, $table, $input->getOption('format'));
}