output mount id on create

remotes/origin/users-ajaxloadgroups
Robin Appelman 10 years ago
parent 16ad612c83
commit 96b592b45b
  1. 5
      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;
}

Loading…
Cancel
Save