\Hubleto\Framework\Interfaces\TerminalInterface
Methods
ƒ setOutput
public setOutput(mixed $output): void
Parameters
| Parameter |
Type |
Description |
$output |
mixed |
|
ƒ isLaunchedFromTerminal
public isLaunchedFromTerminal(): bool
ƒ color
public color(string $fgColor, string $bgColor = 'black'): void
Parameters
| Parameter |
Type |
Description |
$fgColor |
string |
|
$bgColor |
string |
|
ƒ readRaw
public readRaw(): string
ƒ read
public read(string $message, string $default = ''): string
Parameters
| Parameter |
Type |
Description |
$message |
string |
|
$default |
string |
|
ƒ choose
public choose(array $options, string $message, string $default = ''): string
Parameters
| Parameter |
Type |
Description |
$options |
array |
|
$message |
string |
|
$default |
string |
|
ƒ confirm
public confirm(string $question, mixed $yesAnswers = ['yes', 'y', '1']): bool
Parameters
| Parameter |
Type |
Description |
$question |
string |
|
$yesAnswers |
mixed |
|
ƒ yellow
public yellow(string $message): void
Parameters
| Parameter |
Type |
Description |
$message |
string |
|
ƒ green
public green(string $message): void
Parameters
| Parameter |
Type |
Description |
$message |
string |
|
ƒ red
public red(string $message): void
Parameters
| Parameter |
Type |
Description |
$message |
string |
|
ƒ blue
public blue(string $message): void
Parameters
| Parameter |
Type |
Description |
$message |
string |
|
ƒ cyan
public cyan(string $message): void
Parameters
| Parameter |
Type |
Description |
$message |
string |
|
ƒ white
public white(string $message): void
Parameters
| Parameter |
Type |
Description |
$message |
string |
|
ƒ colored
public colored(string $bgColor, string $fgColor, string $message): void
Parameters
| Parameter |
Type |
Description |
$bgColor |
string |
|
$fgColor |
string |
|
$message |
string |
|
ƒ insertCodeToFile
public insertCodeToFile(string $file, string $tag, array $codeLines): bool
Parameters
| Parameter |
Type |
Description |
$file |
string |
|
$tag |
string |
|
$codeLines |
array |
|
ƒ error
public error(string $message): void
Parameters
| Parameter |
Type |
Description |
$message |
string |
|
www.hubleto.com |
Found a bug or missing something? Report an
issue via GitHub.