Properties

$output

$output : \think\console\Output

Type

Output

Methods

describe()

describe(\think\console\Output  $output, mixed  $object, array  $options = []) : mixed

{@inheritdoc}

Parameters

\think\console\Output $output
mixed $object
array $options

Returns

mixed —

write()

write(string  $content, bool  $decorated = false) : mixed

输出内容

Parameters

string $content
bool $decorated

Returns

mixed —

describeInputArgument()

describeInputArgument(\think\console\input\Argument  $argument, array  $options = []) : string|mixed

描述参数

Parameters

\think\console\input\Argument $argument
array $options

Returns

string|mixed —

describeInputOption()

describeInputOption(\think\console\input\Option  $option, array  $options = []) : string|mixed

描述选项

Parameters

\think\console\input\Option $option
array $options

Returns

string|mixed —

describeInputDefinition()

describeInputDefinition(\think\console\input\Definition  $definition, array  $options = []) : string|mixed

描述输入

Parameters

\think\console\input\Definition $definition
array $options

Returns

string|mixed —

describeCommand()

describeCommand(\think\console\Command  $command, array  $options = []) : string|mixed

描述指令

Parameters

\think\console\Command $command
array $options

Returns

string|mixed —

describeConsole()

describeConsole(\think\Console  $console, array  $options = []) : string|mixed

描述控制台

Parameters

\think\Console $console
array $options

Returns

string|mixed —

writeText()

writeText(mixed  $content, array  $options = []) : mixed

{@inheritdoc}

Parameters

mixed $content
array $options

Returns

mixed —

formatDefaultValue()

formatDefaultValue(mixed  $default) : string

格式化

Parameters

mixed $default

Returns

string —

getColumnWidth()

getColumnWidth(\think\console\Command[]  $commands) : int

Parameters

\think\console\Command[] $commands

Returns

int —

calculateTotalWidthForOptions()

calculateTotalWidthForOptions(\think\console\input\Option[]  $options) : int

Parameters

\think\console\input\Option[] $options

Returns

int —