diff options
author | Robin Appelman <robin@icewind.nl> | 2022-10-03 17:09:24 +0300 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2022-10-11 14:49:31 +0300 |
commit | 9d16012e007f75ee7739ea7b456830d4719da7d2 (patch) | |
tree | 312faaa2ead67d8c1ad3e6542e4f20a1590315d7 | |
parent | 53123c2ec332d4cbca7d05ebc921561524c70f59 (diff) |
return created groupfolder id from create command
makes it easier to use in scripting
Signed-off-by: Robin Appelman <robin@icewind.nl>
-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; } } |