glastree_on_gitea
This commit is contained in:
Vendored
+37
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace Laravel\Prompts;
|
||||
|
||||
class Title extends Prompt
|
||||
{
|
||||
public function __construct(public string $title)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the title of the terminal.
|
||||
*/
|
||||
public function prompt(): bool
|
||||
{
|
||||
$this->writeDirectly($this->renderTheme());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the title of the terminal.
|
||||
*/
|
||||
public function display(): void
|
||||
{
|
||||
$this->prompt();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value of the prompt.
|
||||
*/
|
||||
public function value(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user