summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-02-05 15:54:19 +0100
committerRobin Appelman <icewind@owncloud.com>2016-02-05 15:54:19 +0100
commit96b592b45ba2de9ecbf71a6a3d9a6bf4aa4ae666 (patch)
treefef5a64089a17fbbeaea3ac6bc72be74d28f4451
parent16ad612c83cf13dd3bc5c658556fcab0ac8f229f (diff)
downloadnextcloud-server-96b592b45ba2de9ecbf71a6a3d9a6bf4aa4ae666.tar.gz
nextcloud-server-96b592b45ba2de9ecbf71a6a3d9a6bf4aa4ae666.zip
output mount id on create
-rw-r--r--apps/files_external/command/create.php5
1 files changed, 5 insertions, 0 deletions
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('<info>Storage created with id ' . $mount->getId() . '</info>');
+ } else {
+ $output->writeln($mount->getId());
+ }
}
return 0;
}