Skip to content

Commit

Permalink
Merge pull request #77 from miclf/patch-1
Browse files Browse the repository at this point in the history
Respect --quiet option
  • Loading branch information
taylorotwell authored Jul 8, 2018
2 parents 354c54a + fd52b15 commit 39763d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ protected function execute(InputInterface $input, OutputInterface $output)
}, $commands);
}

if ($input->getOption('quiet')) {
$commands = array_map(function ($value) {
return $value.' --quiet';
}, $commands);
}

$process = new Process(implode(' && ', $commands), $directory, null, null, null);

if ('\\' !== DIRECTORY_SEPARATOR && file_exists('/dev/tty') && is_readable('/dev/tty')) {
Expand Down

0 comments on commit 39763d8

Please sign in to comment.