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>
This commit is contained in:
Jonas 2023-11-14 21:04:16 +01:00
parent 490f5cc4ec
commit af4287d8a3

View file

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