$name
$name : string
$commands : array<mixed,\think\console\Command>
$definition : \think\console\input\Definition
init(boolean  $run = true) : integer|\think\Console
                初始化 Console
| boolean | $run | 是否运行 Console  | 
                            
call(string $command, array $parameters = array(), string $driver = 'buffer') : \think\console\Output
调用命令
| string | $command | |
| array | $parameters | |
| string | $driver | 
doRun(\think\console\Input $input, \think\console\Output $output) : integer
执行指令
| \think\console\Input | $input | 输入  | 
                            
| \think\console\Output | $output | 输出  | 
                            
setDefinition(\think\console\input\Definition  $definition) : \think\$this;
                设置输入参数定义
| \think\console\input\Definition | $definition | 输入定义  | 
                            
getDefinition() : \think\console\input\Definition
获取输入参数定义
register(string  $name) : \think\console\Command
                注册一个指令
| string | $name | 指令名称  | 
                            
addCommands(array<mixed,\think\console\Command>  $commands) : $this
                批量添加指令
| array<mixed,\think\console\Command> | $commands | 指令实例  | 
                            
add(\think\console\Command  $command) : \think\console\Command|boolean
                添加一个指令
| \think\console\Command | $command | 命令实例  | 
                            
get(string  $name) : \think\console\Command
                获取指令
| string | $name | 指令名称  | 
                            
find(string  $name) : \think\console\Command
                查找指令
| string | $name | 名称或者别名  | 
                            
all(string  $namespace = null) : array<mixed,\think\console\Command>
                获取所有的指令
| string | $namespace | 命名空间  | 
                            
configureIO(\think\console\Input $input, \think\console\Output $output) : void
配置基于用户的参数和选项的输入和输出实例
| \think\console\Input | $input | 输入实例  | 
                            
| \think\console\Output | $output | 输出实例  | 
                            
doRunCommand(\think\console\Command $command, \think\console\Input $input, \think\console\Output $output) : integer
执行指令
| \think\console\Command | $command | 指令实例  | 
                            
| \think\console\Input | $input | 输入实例  | 
                            
| \think\console\Output | $output | 输出实例  | 
                            
getCommandName(\think\console\Input  $input) : string
                获取指令的名称
| \think\console\Input | $input | 输入实例  | 
                            
getDefaultInputDefinition() : \think\console\input\Definition
获取默认输入定义
getDefaultCommands() : array<mixed,\think\console\Command>
获取默认命令