[2.0] small visual cli changes
This commit is contained in:
parent
7411ca3532
commit
6e8a511094
@ -60,11 +60,6 @@ use Doctrine\Common\Util\Inflector,
|
||||
*/
|
||||
class Cli
|
||||
{
|
||||
/**
|
||||
* @var ORM\Configuration Configuration
|
||||
*/
|
||||
//private $_configuration = null;
|
||||
|
||||
/**
|
||||
* @var AbstractPrinter CLI Printer instance
|
||||
*/
|
||||
@ -157,7 +152,8 @@ class Cli
|
||||
|
||||
try {
|
||||
$this->_printer->writeln(
|
||||
'Doctrine Command Line Interface' . PHP_EOL, 'HEADER'
|
||||
'Doctrine Command Line Interface',
|
||||
'HEADER'
|
||||
);
|
||||
|
||||
// Handle possible multiple tasks on a single command
|
||||
|
@ -43,8 +43,10 @@ class AnsiColorPrinter extends AbstractPrinter
|
||||
{
|
||||
$this->addStyles(array(
|
||||
'ERROR' => new Style('WHITE', 'RED', array('BOLD' => true)),
|
||||
'WARNING' => new Style('DEFAULT', 'YELLOW'),
|
||||
'KEYWORD' => new Style('BLUE', 'DEFAULT', array('BOLD' => true)),
|
||||
'INFO' => new Style('GREEN', 'DEFAULT', array('BOLD' => true)),
|
||||
'COMMENT' => new Style('DEFAULT', 'YELLOW'),
|
||||
'COMMENT' => new Style('DEFAULT', 'MAGENTA'),
|
||||
'HEADER' => new Style('DEFAULT', 'DEFAULT', array('BOLD' => true)),
|
||||
'NONE' => new Style(),
|
||||
));
|
||||
|
@ -66,6 +66,8 @@ class HelpTask extends AbstractTask
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$this->getPrinter()->writeln('Available Tasks:', 'NONE');
|
||||
|
||||
// Switch between ALL available tasks and display the basic Help of each one
|
||||
$availableTasks = $this->getAvailableTasks();
|
||||
|
||||
|
@ -24,7 +24,10 @@ class RunSqlTask extends AbstractTask
|
||||
*/
|
||||
public function basicHelp()
|
||||
{
|
||||
$this->getPrinter()->writeln('run-sql basic help.', 'INFO');
|
||||
$this->getPrinter()->write('run-sql', 'KEYWORD');
|
||||
$this->getPrinter()->writeln(
|
||||
' --file=<path> | --sql=<SQL>',
|
||||
'INFO');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -50,7 +50,10 @@ class SchemaToolTask extends AbstractTask
|
||||
*/
|
||||
public function basicHelp()
|
||||
{
|
||||
$this->getPrinter()->writeln('create-schema basic help.', 'INFO');
|
||||
$this->getPrinter()->write('schema-tool', 'KEYWORD');
|
||||
$this->getPrinter()->writeln(
|
||||
' --create | --drop | --update [--dump-sql] [--classdir=<path>]',
|
||||
'INFO');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -52,7 +52,7 @@ class VersionTask extends AbstractTask
|
||||
*/
|
||||
public function basicHelp()
|
||||
{
|
||||
$this->getPrinter()->writeln('version extended help.', 'INFO');
|
||||
$this->getPrinter()->writeln('version', 'KEYWORD');
|
||||
/*$this->getPrinter()->write('version basic help' . PHP_EOL, 'HEADER');
|
||||
$this->getPrinter()->write('version basic help' . PHP_EOL, 'ERROR');
|
||||
$this->getPrinter()->write('version basic help' . PHP_EOL, 'INFO');
|
||||
|
Loading…
x
Reference in New Issue
Block a user