Skip to content

Commit dcf1801

Browse files
javiereguiluzfabpot
authored andcommitted
Tweaked some console command styles
1 parent ce3b8fd commit dcf1801

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Symfony/Component/Console/Style/SymfonyStyle.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ public function block($messages, $type = null, $style = null, $prefix = ' ', $pa
9797
*/
9898
public function title($message)
9999
{
100-
$this->writeln(sprintf("\n<fg=blue>%s</fg=blue>\n<fg=blue>%s</fg=blue>\n", $message, str_repeat('=', strlen($message))));
100+
$this->writeln(sprintf("\n<comment>%s</>\n<comment>%s</>\n", $message, str_repeat('=', strlen($message))));
101101
}
102102

103103
/**
104104
* {@inheritdoc}
105105
*/
106106
public function section($message)
107107
{
108-
$this->writeln(sprintf("<fg=blue>%s</fg=blue>\n<fg=blue>%s</fg=blue>\n", $message, str_repeat('-', strlen($message))));
108+
$this->writeln(sprintf("<comment>%s</>\n<comment>%s</>\n", $message, str_repeat('-', strlen($message))));
109109
}
110110

111111
/**
@@ -119,7 +119,7 @@ public function listing(array $elements)
119119
$elements
120120
);
121121

122-
$this->writeln(implode("\n\n", $elements)."\n");
122+
$this->writeln(implode("\n", $elements)."\n");
123123
}
124124

125125
/**
@@ -183,6 +183,8 @@ public function caution($message)
183183
*/
184184
public function table(array $headers, array $rows)
185185
{
186+
$headers = array_map(function ($value) { return sprintf('<info>%s</>', $value); }, $headers);
187+
186188
$table = new Table($this);
187189
$table->setHeaders($headers);
188190
$table->setRows($rows);

0 commit comments

Comments
 (0)