PHP Class Platformsh\Cli\Console\CustomTextDescriptor

Inheritance: extends Symfony\Component\Console\Descriptor\TextDescriptor
Afficher le fichier Open project: commerceguys/platform-cli

Protected Properties

Свойство Type Description
$cliExecutableName

Méthodes publiques

Méthode Description
__construct ( string | null $cliExecutableName = null )

Méthodes protégées

Méthode 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 méthode

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

describeApplication() protected méthode

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

describeCommand() protected méthode

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

formatAliases() protected méthode

protected formatAliases ( array $aliases ) : string
$aliases array
Résultat string

formatDefaultValue() protected méthode

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

getColumnWidth() protected méthode

protected getColumnWidth ( array $commands ) : integer
$commands array
Résultat integer

getTerminalWidth() protected méthode

protected getTerminalWidth ( integer $default = 80 ) : integer
$default integer
Résultat integer

writeText() protected méthode

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

Property Details

$cliExecutableName protected_oe property

protected $cliExecutableName