Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ListCommand.php

function ListCommand::execute

Overrides Command::execute

File

vendor/symfony/console/Command/ListCommand.php, line 60

Class

ListCommand
ListCommand displays the list of all available commands for the application.

Namespace

Symfony\Component\Console\Command

Code

protected function execute(InputInterface $input, OutputInterface $output) : int {
    $helper = new DescriptorHelper();
    $helper->describe($output, $this->getApplication(), [
        'format' => $input->getOption('format'),
        'raw_text' => $input->getOption('raw'),
        'namespace' => $input->getArgument('namespace'),
        'short' => $input->getOption('short'),
    ]);
    return 0;
}
RSS feed
Powered by Drupal