StyleInterface
interface StyleInterface
Output style helpers.
Methods
Formats a command title.
Formats a section title.
Formats a list.
Formats informational text.
Formats a success result bar.
Formats an error result bar.
Formats an warning result bar.
Formats a note admonition.
Formats a caution admonition.
Formats a table.
Asks a question.
Asks a question with the user input hidden.
Asks for confirmation.
Asks a choice question.
Add newline(s).
Starts the progress output.
Advances the progress output X steps.
Finishes the progress output.
Details
at line line 26
title(string $message)
Formats a command title.
at line line 33
section(string $message)
Formats a section title.
at line line 40
listing(array $elements)
Formats a list.
at line line 47
text(string|array $message)
Formats informational text.
at line line 54
success(string|array $message)
Formats a success result bar.
at line line 61
error(string|array $message)
Formats an error result bar.
at line line 68
warning(string|array $message)
Formats an warning result bar.
at line line 75
note(string|array $message)
Formats a note admonition.
at line line 82
caution(string|array $message)
Formats a caution admonition.
at line line 90
table(array $headers, array $rows)
Formats a table.
at line line 101
string
ask(string $question, string|null $default = null, callable|null $validator = null)
Asks a question.
at line line 111
string
askHidden(string $question, callable|null $validator = null)
Asks a question with the user input hidden.
at line line 121
bool
confirm(string $question, bool $default = true)
Asks for confirmation.
at line line 132
string
choice(string $question, array $choices, string|int|null $default = null)
Asks a choice question.
at line line 139
newLine(int $count = 1)
Add newline(s).
at line line 146
progressStart(int $max)
Starts the progress output.
at line line 153
progressAdvance(int $step = 1)
Advances the progress output X steps.
at line line 158
progressFinish()
Finishes the progress output.