From 96b592b45ba2de9ecbf71a6a3d9a6bf4aa4ae666 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 5 Feb 2016 15:54:19 +0100 Subject: output mount id on create --- apps/files_external/command/create.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps') diff --git a/apps/files_external/command/create.php b/apps/files_external/command/create.php index b2def1135bb..4b0ef99ff3a 100644 --- a/apps/files_external/command/create.php +++ b/apps/files_external/command/create.php @@ -180,6 +180,11 @@ class Create extends Base { $this->showMount($user, $mount, $input, $output); } else { $this->getStorageService($user)->addStorage($mount); + if ($input->getOption('output') === self::OUTPUT_FORMAT_PLAIN) { + $output->writeln('Storage created with id ' . $mount->getId() . ''); + } else { + $output->writeln($mount->getId()); + } } return 0; } -- cgit v1.2.3