mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Update core/Command/Background/ListCommand.php
Co-authored-by: Daniel <mail@danielkesselberg.de> Signed-off-by: Jonas <jonas@freesources.org>
This commit is contained in:
parent
bb75dab93a
commit
deb4bb8d4e
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Reference in a new issue