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
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-10-11 14:49:01 +0300
committerGitHub <noreply@github.com>2022-10-11 14:49:01 +0300
commitef25e5104f9b1eff7cad9bc610f3026bf3df243c (patch)
tree93b59debf68030fbffeefbb8049ffd41e77964e9
parent513b3f4c1d11dde358a0950a59ba88f7c4f1f7c7 (diff)
parent0ff6c945d3198770836109e28a688561cf835b19 (diff)
Merge pull request #2114 from nextcloud/create-return-id
return created groupfolder id from create command
-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..d29baef1 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((string)$id);
return 0;
}
}