All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
29 lines
568 B
PHP
29 lines
568 B
PHP
<?php
|
|
|
|
namespace Laravel\Prompts;
|
|
|
|
class PausePrompt extends Prompt
|
|
{
|
|
/**
|
|
* Create a new PausePrompt instance.
|
|
*/
|
|
public function __construct(public string $message = 'Press enter to continue...')
|
|
{
|
|
$this->required = false;
|
|
$this->validate = null;
|
|
|
|
$this->on('key', fn ($key) => match ($key) {
|
|
Key::ENTER => $this->submit(),
|
|
default => null,
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Get the value of the prompt.
|
|
*/
|
|
public function value(): bool
|
|
{
|
|
return static::$interactive;
|
|
}
|
|
}
|