TextDescriptor
Extends TextDescriptorText object descriptor.
since |
2.0.0 |
---|---|
package |
Joomla Framework |
Methods
describe
Describes an object.
describe(\Symfony\Component\Console\Output\OutputInterface output, object object, array options = []) : void
since |
2.0.0 |
---|
Arguments
- output
\Symfony\Component\Console\Output\OutputInterface
The output object to use.- object
object
The object to describe.- options
array
Descriptor options.
describeConsoleCommand
Describes a command.
describeConsoleCommand(\Joomla\Console\Command\AbstractCommand command, array options) : void
since |
2.0.0 |
---|
Arguments
- command
\Joomla\Console\Command\AbstractCommand
The command being described.- options
array
Descriptor options.
describeJoomlaApplication
Describes an application.
describeJoomlaApplication(\Joomla\Console\Application app, array options) : void
since |
2.0.0 |
---|
Arguments
- app
\Joomla\Console\Application
The application being described.- options
array
Descriptor options.
getColumnWidth
Calculate the column width for a group of commands.
getColumnWidth(\Joomla\Console\Command\AbstractCommand[]|string[] commands) : int
since |
2.0.0 |
---|
Arguments
- commands
\Joomla\Console\Command\AbstractCommand[]|string[]
The commands to use for processing a width.
Response
int
getCommandAliasesText
Formats command aliases to show them in the command description.
getCommandAliasesText(\Joomla\Console\Command\AbstractCommand command) : string
since |
2.0.0 |
---|
Arguments
- command
\Joomla\Console\Command\AbstractCommand
The command to process
Response
string
writeText
Writes text to the output.
writeText(string content, array options = []) : void
since |
2.0.0 |
---|
Arguments
- content
string
The message.- options
array
The options to use for formatting the output.