protected function ListCommand::configure in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Command/ListCommand.php \Symfony\Component\Console\Command\ListCommand::configure()
Configures the current command.
Overrides Command::configure
File
- vendor/
symfony/ console/ Command/ ListCommand.php, line 31
Class
- ListCommand
- ListCommand displays the list of all available commands for the application.
Namespace
Symfony\Component\Console\CommandCode
protected function configure() {
$this
->setName('list')
->setDefinition($this
->createDefinition())
->setDescription('Lists commands')
->setHelp(<<<EOF
The <info>%command.name%</info> command lists all commands:
<info>php %command.full_name%</info>
You can also display the commands for a specific namespace:
<info>php %command.full_name% test</info>
You can also output the information in other formats by using the <comment>--format</comment> option:
<info>php %command.full_name% --format=xml</info>
It's also possible to get raw list of commands (useful for embedding command runner):
<info>php %command.full_name% --raw</info>
EOF
);
}