Skip to content

Commit

Permalink
Support ansi options. (#3579)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-teck authored and weitzman committed Jun 11, 2018
1 parent 0dd2f16 commit 6f2aef7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Commands/generate/GenerateCommands.php
Expand Up @@ -71,6 +71,12 @@ public function generate($generator = '', $options = ['answers' => self::REQ, 'd
'--answers=' . escapeshellarg($options['answers']),
'--directory=' . $options['directory']
];
if ($options['ansi']) {
$argv[] = '--ansi';
}
if ($options['no-ansi']) {
$argv[] = '--no-ansi';
}
return $application->run(new StringInput(implode(' ', $argv)));
}
}
Expand Down

0 comments on commit 6f2aef7

Please sign in to comment.