From af0b34346d8fe03fa3e13eaf6b6aae0fa494ef7c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 3 Oct 2022 16:09:24 +0200 Subject: return created groupfolder id from create command makes it easier to use in scripting Signed-off-by: Robin Appelman --- lib/Command/Create.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Command/Create.php b/lib/Command/Create.php index de72c324..ac4346bc 100644 --- a/lib/Command/Create.php +++ b/lib/Command/Create.php @@ -46,7 +46,8 @@ class Create extends Base { } protected function execute(InputInterface $input, OutputInterface $output) { - $this->folderManager->createFolder($input->getArgument('name')); + $id = $this->folderManager->createFolder($input->getArgument('name')); + $output->writeln($id); return 0; } } -- cgit v1.2.3