From a91f313a1c5796429cfb39b0e2e507e221532282 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 28 Mar 2025 15:23:13 +0100 Subject: feat: move streaming output helps to command base class Signed-off-by: Robin Appelman --- apps/files/lib/Command/Object/ListObject.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/files/lib/Command/Object/ListObject.php') diff --git a/apps/files/lib/Command/Object/ListObject.php b/apps/files/lib/Command/Object/ListObject.php index f63eb9c2260..5d30232e09f 100644 --- a/apps/files/lib/Command/Object/ListObject.php +++ b/apps/files/lib/Command/Object/ListObject.php @@ -42,7 +42,8 @@ class ListObject extends Base { return self::FAILURE; } $objects = $objectStore->listObjects(); - $this->objectUtils->writeIteratorToOutput($input, $output, $objects, self::CHUNK_SIZE); + $objects = $this->objectUtils->formatObjects($objects, $input->getOption('output') === self::OUTPUT_FORMAT_PLAIN); + $this->writeStreamingTableInOutputFormat($input, $output, $objects, self::CHUNK_SIZE); return self::SUCCESS; } -- cgit v1.2.3