|
|
|
|
@ -67,7 +67,9 @@ class ListCommand extends Base { |
|
|
|
|
|
|
|
|
|
protected function execute(InputInterface $input, OutputInterface $output): int { |
|
|
|
|
$jobs = $this->jobList->getJobsIterator($input->getOption('class'), (int)$input->getOption('limit'), (int)$input->getOption('offset')); |
|
|
|
|
$output->writeln("Output is currently limited to first " . $input->getOption('limit') . " jobs. Specify `-l, --limit[=LIMIT]` to override."); |
|
|
|
|
if ($input->getOption('output') === self::OUTPUT_FORMAT_PLAIN) { |
|
|
|
|
$output->writeln("Output is currently limited to first " . $input->getOption('limit') . " jobs. Specify `-l, --limit[=LIMIT]` to override."); |
|
|
|
|
} |
|
|
|
|
$this->writeTableInOutputFormat($input, $output, $this->formatJobs($jobs)); |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
|