Skip to content

Commit

Permalink
Remove custom output styles (blink)
Browse files Browse the repository at this point in the history
  • Loading branch information
vovayatsyuk committed Mar 3, 2021
1 parent 6c9b2cf commit f9bf438
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions Console/Command/ThemeCreateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ protected function configure()
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
$this->prepareOutput($output);

$themeName = $input->getArgument('name');
if (strpos($themeName, '/') === false) {
$themeName = 'Local/' . $themeName;
Expand Down Expand Up @@ -98,22 +96,4 @@ protected function execute(InputInterface $input, OutputInterface $output)
$output->writeln('<success>New Local Swissup theme create done!</success>');
$output->writeln('<warn>Please run setup:upgrade from Magento CLI</warn>');
}

/**
* @param OutputInterface $output
* @return OutputInterface
*/
protected function prepareOutput(OutputInterface $output)
{
$error = new OutputFormatterStyle('red', 'black', ['bold', 'blink']);
$warn = new OutputFormatterStyle('yellow', 'black', ['bold', 'blink']);
$success = new OutputFormatterStyle('green', 'black', ['bold', 'blink']);
$special = new OutputFormatterStyle('blue', 'black', ['bold', 'blink']);
$output->getFormatter()->setStyle('error', $error);
$output->getFormatter()->setStyle('warn', $warn);
$output->getFormatter()->setStyle('success', $success);
$output->getFormatter()->setStyle('special', $special);

return $output;
}
}

0 comments on commit f9bf438

Please sign in to comment.