Commit 86f46b0c authored by Tomás Soler's avatar Tomás Soler Committed by GitHub

Respect --no-ansi option

Makes laravel --no-ansi be respected, even when showing the result of the composer command.
parent b0e87ee6
......@@ -62,7 +62,13 @@ class NewCommand extends Command
$composer.' run-script post-install-cmd',
$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