protected function execute(InputInterface $input, OutputInterface $output)
{
$this->_input = $input;
$this->_output = $output;
$this->initVariables($this->_input->getArgument('search'));
$outputVars = $this->_allVariables;
if (null === $this->_input->getArgument('search')) {
$outputVars = array_intersect_key($this->_allVariables, $this->_importantVars);
}
$outputVars = $this->formatVariables($outputVars);
reset($this->_importantVars);
$hasDescription = isset($this->_importantVars[key($this->_importantVars)]['desc']) && false === $this->_input->getOption('no-description');
$header = array('Variable Name', 'Value');
if (true === $hasDescription) {
$header[] = 'Description';
}
$this->renderTable($header, $this->generateRows($outputVars, $hasDescription));
}