From deb4bb8d4e59258f1fb0a7fcfe27173633e580b6 Mon Sep 17 00:00:00 2001 From: Jonas Date: Tue, 14 Nov 2023 15:58:12 +0100 Subject: Update core/Command/Background/ListCommand.php Co-authored-by: Daniel Signed-off-by: Jonas --- core/Command/Background/ListCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/Command/Background/ListCommand.php b/core/Command/Background/ListCommand.php index 0ba2b8a2194..44ae72c2c9b 100644 --- a/core/Command/Background/ListCommand.php +++ b/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; } -- cgit v1.2.3