Update core/Command/Background/ListCommand.php

Co-authored-by: Daniel <mail@danielkesselberg.de>
Signed-off-by: Jonas <jonas@freesources.org>
pull/40042/head
Jonas 2 years ago
parent bb75dab93a
commit deb4bb8d4e
  1. 4
      core/Command/Background/ListCommand.php

@ -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;
}

Loading…
Cancel
Save