N98\Magento\Command\Indexer\ListCommand::execute PHP Method

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | void
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return integer | void
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->detectMagento($output, true);
        if (!$this->initMagento()) {
            return;
        }
        $table = array();
        foreach ($this->getIndexerList() as $index) {
            $table[] = array($index['code'], $index['status'], $index['last_runtime']);
        }
        $this->getHelper('table')->setHeaders(array('code', 'status', 'time'))->renderByFormat($output, $table, $input->getOption('format'));
    }