Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/groupfolders.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-10-03 17:09:24 +0300
committerRobin Appelman <robin@icewind.nl>2022-10-03 17:11:06 +0300
commitaf0b34346d8fe03fa3e13eaf6b6aae0fa494ef7c (patch)
tree1959bdc8953ded619ef12d692031ae670f7290bf /lib
parent561986ac644af91bf3a6e99595c65ea1f6538fe6 (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.php3
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;
}
}