setName('organization-folders:members:list') ->addArgument('organization-folder-id', InputArgument::REQUIRED, 'Id of organization folder') ->setDescription('List all members of organization folder.'); parent::configure(); } protected function execute(InputInterface $input, OutputInterface $output): int { try { $organizationFolderId = $input->getArgument('organization-folder-id'); $members = $this->organizationFolderMemberService->findAll($organizationFolderId); $this->writeTableInOutputFormat($input, $output, $this->formatTableSerializables($members)); return 0; } catch (Exception $e) { $output->writeln("Exception \"{$e->getMessage()}\" at {$e->getFile()} line {$e->getLine()}"); return 1; } } }