added info method to symfony style
This commit is contained in:
parent
7bac792328
commit
204cd739d3
@ -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}
|
||||
*/
|
||||
|
@ -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);
|
||||
};
|
||||
|
@ -9,5 +9,7 @@
|
||||
|
||||
! [NOTE] Note
|
||||
|
||||
[INFO] Info
|
||||
|
||||
X [CUSTOM] Custom block
|
||||
|
||||
|
Reference in New Issue
Block a user