success() success(string|array $message) Formats a success result bar. Parameters string|array $message
warning() warning(string|array $message) Formats an warning result bar. Parameters string|array $message
caution() caution(string|array $message) Formats a caution admonition. Parameters string|array $message
ask() ask(string $question, string|null $default = null, callable|null $validator = null) : mixed Asks a question. Parameters string $question string|null $default callable|null $validator Returns mixed
askHidden() askHidden(string $question, callable|null $validator = null) : mixed Asks a question with the user input hidden. Parameters string $question callable|null $validator Returns mixed
confirm() confirm(string $question, boolean $default = true) : boolean Asks for confirmation. Parameters string $question boolean $default Returns boolean
choice() choice(string $question, array $choices, string|integer|null $default = null) : mixed Asks a choice question. Parameters string $question array $choices string|integer|null $default Returns mixed
newLine() newLine(integer $count = 1) Add newline(s). Parameters integer $count The number of newlines
progressStart() progressStart(integer $max) Starts the progress output. Parameters integer $max Maximum steps (0 if unknown)
progressAdvance() progressAdvance(integer $step = 1) Advances the progress output X steps. Parameters integer $step Number of steps to advance