Commit 7364557a authored by Taylor Otwell's avatar Taylor Otwell Committed by GitHub

Merge pull request #52 from TJSoler/patch-1

Respect --no-ansi option
parents b0e87ee6 40a13af9
......@@ -63,6 +63,12 @@ class NewCommand extends Command
$composer.' run-script post-create-project-cmd',
];
if ($input->getOption('no-ansi')) {
$commands = array_map(function ($value) {
return $value.' --no-ansi';
}, $commands);
}
$process = new Process(implode(' && ', $commands), $directory, null, null, null);
if ('\\' !== DIRECTORY_SEPARATOR && file_exists('/dev/tty') && is_readable('/dev/tty')) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment