output mount id on create

This commit is contained in:
Robin Appelman 2016-02-05 15:54:19 +01:00
parent 16ad612c83
commit 96b592b45b
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}