%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/staging/.trash/vendor.8/laravel/prompts/src/
Upload File :
Create Path :
Current File : /home/staging/.trash/vendor.8/laravel/prompts/src/PausePrompt.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;
    }
}

Zerion Mini Shell 1.0