0
0
Fork 0
mirror of https://github.com/verdigado/organization_folders.git synced 2024-11-24 21:50:26 +01:00

use table output for create occ command

This commit is contained in:
Jonathan Treffler 2024-11-02 20:15:32 +01:00
parent 9487ddc910
commit 4e120250e1

View file

@ -26,7 +26,7 @@ class CreateOrganizationFolder extends BaseCommand {
try { try {
$organizationFolder = $this->organizationFolderService->create($name, $quota); $organizationFolder = $this->organizationFolderService->create($name, $quota);
$output->writeln(json_encode($organizationFolder)); $this->writeTableInOutputFormat($input, $output, [$this->formatTableSerializable($organizationFolder)]);
return 0; return 0;
} catch (Exception $e) { } catch (Exception $e) {
$output->writeln("<error>Exception \"{$e->getMessage()}\" at {$e->getFile()} line {$e->getLine()}</error>"); $output->writeln("<error>Exception \"{$e->getMessage()}\" at {$e->getFile()} line {$e->getLine()}</error>");