Merge pull request #150 from innocenzi/fix/command-interactions

Avoid command interactions when the `--no-interaction` flag is given
This commit is contained in:
Nuno Maduro
2020-08-03 21:26:11 +01:00
committed by GitHub

View File

@ -60,7 +60,9 @@ final class PestInstallCommand extends Command
$this->output->success('`tests/Pest.php` created successfully.'); $this->output->success('`tests/Pest.php` created successfully.');
$this->output->success('`tests/Helpers.php` created successfully.'); $this->output->success('`tests/Helpers.php` created successfully.');
(new \Pest\Console\Thanks($this->output))(); if (!(bool) $this->option('no-interaction')) {
(new \Pest\Console\Thanks($this->output))();
}
} }
/** /**