PHP Class Platformsh\Cli\Console\CustomTextDescriptor

Inheritance: extends Symfony\Component\Console\Descriptor\TextDescriptor
显示文件 Open project: commerceguys/platform-cli

Protected Properties

Property Type Description
$cliExecutableName

Public Methods

Method Description
__construct ( string | null $cliExecutableName = null )

Protected Methods

Method Description
describeApplication ( Application $application, array $options = [] )
describeCommand ( Command $command, array $options = [] )
formatAliases ( array $aliases ) : string
formatDefaultValue ( mixed $default ) : string Formats input option/argument default value.
getColumnWidth ( array $commands ) : integer
getTerminalWidth ( integer $default = 80 ) : integer
writeText ( $content, array $options = [] )

Method Details

__construct() public method

public __construct ( string | null $cliExecutableName = null )
$cliExecutableName string | null The name of the CLI command.

describeApplication() protected method

protected describeApplication ( Application $application, array $options = [] )
$application Symfony\Component\Console\Application
$options array

describeCommand() protected method

protected describeCommand ( Command $command, array $options = [] )
$command Symfony\Component\Console\Command\Command
$options array

formatAliases() protected method

protected formatAliases ( array $aliases ) : string
$aliases array
return string

formatDefaultValue() protected method

Formats input option/argument default value.
protected formatDefaultValue ( mixed $default ) : string
$default mixed
return string

getColumnWidth() protected method

protected getColumnWidth ( array $commands ) : integer
$commands array
return integer

getTerminalWidth() protected method

protected getTerminalWidth ( integer $default = 80 ) : integer
$default integer
return integer

writeText() protected method

protected writeText ( $content, array $options = [] )
$options array

Property Details

$cliExecutableName protected_oe property

protected $cliExecutableName