Skip to content

Commit

Permalink
[console] Clear screen on console execution. (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas authored Oct 17, 2016
1 parent 29d46c9 commit 4090b74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/drupal.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
$drupalConsole = new DrupalConsoleCore($pharRoot);
$container = $drupalConsole->boot();

$argvInputReader = new ArgvInputReader();

$configuration = $container->get('console.configuration_manager')
->getConfiguration();

$translator = $container->get('console.translator_manager');

$argvInputReader = new ArgvInputReader();

if ($options = $configuration->get('application.options') ?: []) {
$argvInputReader->setOptionsFromConfiguration($options);
}
Expand Down
1 change: 1 addition & 0 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public function doRun(InputInterface $input, OutputInterface $output)
{
$this->registerGenerators();
$this->registerCommands();
$output->write(sprintf("\033\143"));
parent::doRun($input, $output);
if ($this->getCommandName($input) == 'list') {
$io = new DrupalStyle($input, $output);
Expand Down

0 comments on commit 4090b74

Please sign in to comment.