mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
feat: allows to skip support via env
This commit is contained in:
@ -46,12 +46,12 @@ final class Thanks
|
|||||||
$bootstrapper = new BootView($this->output);
|
$bootstrapper = new BootView($this->output);
|
||||||
$bootstrapper->boot();
|
$bootstrapper->boot();
|
||||||
|
|
||||||
$wantsToSupport = $this->input->isInteractive() && (new SymfonyQuestionHelper())->ask(
|
$wantsToSupport = ! isset($_ENV['PEST_NO_SUPPORT']) && $this->input->isInteractive() && (new SymfonyQuestionHelper())->ask(
|
||||||
new ArrayInput([]),
|
new ArrayInput([]),
|
||||||
$this->output,
|
$this->output,
|
||||||
new ConfirmationQuestion(
|
new ConfirmationQuestion(
|
||||||
' <options=bold>Wanna show Pest some love by starring it on GitHub?</>',
|
' <options=bold>Wanna show Pest some love by starring it on GitHub?</>',
|
||||||
true,
|
false,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,6 @@ use Pest\Support\View;
|
|||||||
use Pest\TestSuite;
|
use Pest\TestSuite;
|
||||||
use Symfony\Component\Console\Input\InputInterface;
|
use Symfony\Component\Console\Input\InputInterface;
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
use Symfony\Component\Process\Process;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
|||||||
Reference in New Issue
Block a user