diff options
author | Robin Appelman <robin@icewind.nl> | 2022-10-03 17:09:24 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-10-03 17:11:06 +0300 |
commit | af0b34346d8fe03fa3e13eaf6b6aae0fa494ef7c (patch) | |
tree | 1959bdc8953ded619ef12d692031ae670f7290bf /lib | |
parent | 561986ac644af91bf3a6e99595c65ea1f6538fe6 (diff) |
return created groupfolder id from create commandcreate-return-id
makes it easier to use in scripting
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Command/Create.php | 3 |
1 files changed, 2 insertions, 1 deletions
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; } } |