0
0
Fork 0
mirror of https://github.com/verdigado/organization_folders.git synced 2024-11-24 13:40:27 +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 {
$organizationFolder = $this->organizationFolderService->create($name, $quota);
$output->writeln(json_encode($organizationFolder));
$this->writeTableInOutputFormat($input, $output, [$this->formatTableSerializable($organizationFolder)]);
return 0;
} catch (Exception $e) {
$output->writeln("<error>Exception \"{$e->getMessage()}\" at {$e->getFile()} line {$e->getLine()}</error>");