8
0

fix getTerminalDimensions

Dieser Commit ist enthalten in:
Stéphane Goetz 2018-05-05 16:58:49 +02:00
Ursprung eae3f31d65
Commit 5ab15752de

Datei anzeigen

@ -5,6 +5,7 @@ use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Terminal;
use Todaymade\Daux\Daux;
class Generate extends DauxCommand
@ -43,7 +44,7 @@ class Generate extends DauxCommand
$daux = $this->prepareDaux($input);
$width = $this->getApplication()->getTerminalDimensions()[0];
$width = (new Terminal)->getWidth();
// Instiantiate the processor if one is defined
$this->prepareProcessor($daux, $input, $output, $width);