Update core/Command/Background/ListCommand.php

Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Jonas <jonas@freesources.org>
pull/40042/head
Jonas 7 months ago
parent 490f5cc4ec
commit af4287d8a3

@ -70,7 +70,7 @@ class ListCommand extends Base {
$jobsInfo = $this->formatJobs($this->jobList->getJobsIterator($input->getOption('class'), $limit, (int)$input->getOption('offset')));
$this->writeTableInOutputFormat($input, $output, $jobsInfo);
if ($input->getOption('output') === self::OUTPUT_FORMAT_PLAIN && count($jobsInfo) >= $limit) {
$output->writeln("\n<comment>Output is currently limited to first " . $limit . " jobs. Specify `-l, --limit[=LIMIT]` to override.</comment>");
$output->writeln("\n<comment>Output is currently limited to " . $limit . " jobs. Specify `-l, --limit[=LIMIT]` to override.</comment>");
}
return 0;
}

Loading…
Cancel
Save