Skip to content

Commit 6f2aef7

Browse files
Chi-teckweitzman
authored andcommitted
Support ansi options. (#3579)
1 parent 0dd2f16 commit 6f2aef7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Commands/generate/GenerateCommands.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ public function generate($generator = '', $options = ['answers' => self::REQ, 'd
7171
'--answers=' . escapeshellarg($options['answers']),
7272
'--directory=' . $options['directory']
7373
];
74+
if ($options['ansi']) {
75+
$argv[] = '--ansi';
76+
}
77+
if ($options['no-ansi']) {
78+
$argv[] = '--no-ansi';
79+
}
7480
return $application->run(new StringInput(implode(' ', $argv)));
7581
}
7682
}

0 commit comments

Comments
 (0)