protected function execute(InputInterface $input, OutputInterface $output)
{
$this->detectMagento($output, true);
if (!$this->initMagento()) {
return;
}
$jobCode = $input->getArgument('job');
if (!$jobCode) {
$this->writeSection($output, 'Cronjob');
$jobCode = $this->askJobCode($output, $this->getJobs());
}
$runConfigModel = $this->getRunConfigModelByJobCode($jobCode);
list($callback, $callableName) = $this->getCallbackFromRunConfigModel($runConfigModel, $jobCode);
$output->write('<info>Run </info><comment>' . $callableName . '</comment> ');
$this->executeConfigModel($callback, $jobCode);
$output->writeln('<info>done</info>');
}