Console
class Console (View source)
Traits
Constants
| private VERSION |
Define Bow Framework version. |
| private HELP_TOPIC_ALIASES |
Command aliases that share another topic's help body. |
| private HELP_TOPICS |
Per-topic help bodies, keyed by command (or alias). The "gen" alias
shares the "generate" body via the aliases map below. Bodies use raw ANSI escape codes — they are pre-formatted templates rather than messages composed through Color::*. |
| private COMMAND |
The command list |
| private ADD_ACTION |
The action list |
Methods
Throw fails command
Get the console instance
Add a custom order to the store from the web env This method work on web and cli env
Launch Bow task runner
Calls a command
No description
Details
protected void
throwFailsCommand(string $message, string|null $command = null)
Throw fails command
__construct(Setting $setting)
Bow constructor.
static Console|null
getInstance()
Get the console instance
static void
register(string $command, callable|string $cb, string|null $description = null, string|null $help = null)
Add a custom order to the store from the web env This method work on web and cli env
void
bind(Loader $kernel)
Bind kernel
run()
Launch Bow task runner
mixed
call(string|null $command)
Calls a command
static Console
addCommand(string $command, callable $cb)
No description