1
0
mirror of synced 2025-01-18 22:41:43 +03:00

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

This commit is contained in:
guilhermeblanco 2009-11-17 01:43:01 +00:00
parent 67665aa574
commit 50f727b58e

View File

@ -87,58 +87,6 @@ class SchemaToolTask extends AbstractTask
->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
*/