aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJonas <jonas@freesources.org>2023-11-14 15:58:12 +0100
committerJonas <jonas@freesources.org>2023-11-14 21:04:27 +0100
commitdeb4bb8d4e59258f1fb0a7fcfe27173633e580b6 (patch)
treee47295ad2c1befa79b09f2f004779db2ae9a2147 /core
parentbb75dab93a639b5fabb1f13b587c22719be95da8 (diff)
downloadnextcloud-server-deb4bb8d4e59258f1fb0a7fcfe27173633e580b6.tar.gz
nextcloud-server-deb4bb8d4e59258f1fb0a7fcfe27173633e580b6.zip
Update core/Command/Background/ListCommand.php
Co-authored-by: Daniel <mail@danielkesselberg.de> Signed-off-by: Jonas <jonas@freesources.org>
Diffstat (limited to 'core')
-rw-r--r--core/Command/Background/ListCommand.php4
1 files changed, 3 insertions, 1 deletions
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;
}