added info method to symfony style

This commit is contained in:
Tito Costa 2020-06-25 12:05:17 +02:00
parent 7bac792328
commit 204cd739d3
3 changed files with 11 additions and 0 deletions

View File

@ -163,6 +163,14 @@ class SymfonyStyle extends OutputStyle
$this->block($message, 'NOTE', 'fg=yellow', ' ! ');
}
/**
* {@inheritdoc}
*/
public function info($message)
{
$this->block($message, 'INFO', 'fg=green', ' ', true);
}
/**
* {@inheritdoc}
*/

View File

@ -12,5 +12,6 @@ return function (InputInterface $input, OutputInterface $output) {
$output->error('Error');
$output->success('Success');
$output->note('Note');
$output->info('Info');
$output->block('Custom block', 'CUSTOM', 'fg=white;bg=green', 'X ', true);
};

View File

@ -9,5 +9,7 @@
! [NOTE] Note
[INFO] Info
X [CUSTOM] Custom block