diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-10-11 14:49:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-11 14:49:01 +0300 |
commit | ef25e5104f9b1eff7cad9bc610f3026bf3df243c (patch) | |
tree | 93b59debf68030fbffeefbb8049ffd41e77964e9 | |
parent | 513b3f4c1d11dde358a0950a59ba88f7c4f1f7c7 (diff) | |
parent | 0ff6c945d3198770836109e28a688561cf835b19 (diff) |
Merge pull request #2114 from nextcloud/create-return-id
return created groupfolder id from create command
-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..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; } } |