setName('organization-folders:list') ->setDescription('List all organization folders'); parent::configure(); } protected function execute(InputInterface $input, OutputInterface $output): int { try { $organizationFolderGroupfolders = $this->organizationFolderService->getAll(); $this->writeTableInOutputFormat($input, $output, $this->formatTableSerializables($organizationFolderGroupfolders)); return 0; } catch (Exception $e) { $output->writeln("Exception \"{$e->getMessage()}\" at {$e->getFile()} line {$e->getLine()}"); return 1; } } }