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:46 +0300 |
commit | a553af724c7661117ff7ec1a08aefe076eff344c (patch) | |
tree | d55905b878fa5330a102b82157e6d249639f3ca6 | |
parent | c0d0c213618b1f6327a139c3bca30cc51e631abc (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 1455711a..58b3f8b6 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; } } |