|
20 | 20 | use Drift\Console\OutputPrinter; |
21 | 21 | use React\EventLoop\LoopInterface; |
22 | 22 | use Symfony\Component\Console\Command\Command; |
| 23 | +use Symfony\Component\Console\Formatter\OutputFormatterStyle; |
23 | 24 | use Symfony\Component\Console\Input\InputInterface; |
24 | 25 | use Symfony\Component\Console\Input\InputOption; |
25 | 26 | use Symfony\Component\Console\Output\OutputInterface; |
@@ -81,23 +82,25 @@ protected function configure() |
81 | 82 | */ |
82 | 83 | protected function execute(InputInterface $input, OutputInterface $output) |
83 | 84 | { |
| 85 | + $outputFormatter = $output->getFormatter(); |
| 86 | + $outputFormatter->setStyle('performance', new OutputFormatterStyle('gray')); |
84 | 87 | $outputPrinter = new OutputPrinter($output, false, false); |
85 | 88 | if (!$input->getOption('force')) { |
86 | | - (new CommandBusHeaderMessage('', 'Please, use the flag --force'))->print($outputPrinter); |
| 89 | + (new CommandBusHeaderMessage('Please, use the flag --force'))->print($outputPrinter); |
87 | 90 |
|
88 | 91 | return 1; |
89 | 92 | } |
90 | 93 |
|
91 | 94 | $adapterName = $this->asyncAdapter->getName(); |
92 | | - (new CommandBusHeaderMessage('', 'Started building infrastructure...'))->print($outputPrinter); |
93 | | - (new CommandBusHeaderMessage('', 'Using adapter '.$adapterName))->print($outputPrinter); |
| 95 | + (new CommandBusHeaderMessage('Started building infrastructure...'))->print($outputPrinter); |
| 96 | + (new CommandBusHeaderMessage('Using adapter '.$adapterName))->print($outputPrinter); |
94 | 97 |
|
95 | 98 | $promise = $this |
96 | 99 | ->asyncAdapter |
97 | 100 | ->createInfrastructure($outputPrinter); |
98 | 101 |
|
99 | 102 | Block\await($promise, $this->loop); |
100 | | - (new CommandBusHeaderMessage('', 'Infrastructure built'))->print($outputPrinter); |
| 103 | + (new CommandBusHeaderMessage('Infrastructure built'))->print($outputPrinter); |
101 | 104 |
|
102 | 105 | return 0; |
103 | 106 | } |
|
0 commit comments