Commit 50f727b5 authored by guilhermeblanco's avatar guilhermeblanco

[2.0] Major refactorings to CLI. New documentation applied. Missing validation and tests

parent 67665aa5
...@@ -87,58 +87,6 @@ class SchemaToolTask extends AbstractTask ...@@ -87,58 +87,6 @@ class SchemaToolTask extends AbstractTask
->addOption($optionalOptions); ->addOption($optionalOptions);
} }
/**
* @inheritdoc
*/
/*public function extendedHelp()
{
$printer = $this->getPrinter();
$printer->write('Task: ')->writeln('schema-tool', 'KEYWORD')
->write('Synopsis: ');
$this->_writeSynopsis($printer);
$printer->writeln('Description: Processes the schema and either apply it directly on EntityManager or generate the SQL output.')
->writeln('Options:')
->write('--create', 'REQ_ARG')
->writeln("\t\tCreates the schema in EntityManager (create tables on Database)")
->writeln("\t\t\tIf defined, --drop and --update can not be requested on same task")
->write(PHP_EOL)
->write('--drop=<metadata|database>', 'REQ_ARG')
->writeln("\t\t\tDrops the schema of EntityManager (drop tables on Database)")
->writeln("\t\t\tDefaults to 'metadata' if only --drop is specified.")
->writeln("\t\t\tIf defined, --create and --update can not be requested on same task")
->write(PHP_EOL)
->write('--update', 'REQ_ARG')
->writeln("\t\tUpdates the schema in EntityManager (update tables on Database)")
->writeln("\t\t\tIf defined, --create and --drop can not be requested on same task")
->write(PHP_EOL)
->write('--re-create', 'REQ_ARG')
->writeln("\t\tRuns --drop then --create to re-create the database.")
->write(PHP_EOL)
->write('--dump-sql', 'OPT_ARG')
->writeln("\t\tInstead of try to apply generated SQLs into EntityManager, output them.")
->write(PHP_EOL)
->write('--class-dir=<path>', 'OPT_ARG')
->writeln("\tOptional class directory to fetch for Entities.")
->write(PHP_EOL);
}*/
/**
* @inheritdoc
*/
/*public function basicHelp()
{
$this->_writeSynopsis($this->getPrinter());
}
private function _writeSynopsis($printer)
{
$printer->write('schema-tool', 'KEYWORD')
->write(' (--create | --drop=<metadata|database> | --update | --re-create)', 'REQ_ARG')
->writeln(' [--dump-sql] [--class-dir=<path>]', 'OPT_ARG');
}*/
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment