Improved some commands
This commit is contained in:
parent
5d6a185f92
commit
ed1d9ad267
5 changed files with 38 additions and 2 deletions
|
|
@ -47,5 +47,18 @@ EOT
|
|||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
$this->callPhing('diff');
|
||||
|
||||
foreach (explode("\n", $this->buffer) as $line) {
|
||||
if (false !== strpos($line, '[propel-sql-diff]')) {
|
||||
$arr = preg_split('#\[propel-sql-diff\] #', $line);
|
||||
$info = $arr[1];
|
||||
|
||||
if ('"' === $info[0]) {
|
||||
$info = sprintf('<info>%s</info>', $info);
|
||||
}
|
||||
|
||||
$output->writeln($info);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue