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

Breadcrumb

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

function SuggestsCommand::configure

Overrides Command::configure

File

vendor/composer/composer/src/Composer/Command/SuggestsCommand.php, line 28

Class

SuggestsCommand

Namespace

Composer\Command

Code

protected function configure() : void {
    $this->setName('suggests')
        ->setDescription('Shows package suggestions')
        ->setDefinition([
        new InputOption('by-package', null, InputOption::VALUE_NONE, 'Groups output by suggesting package (default)'),
        new InputOption('by-suggestion', null, InputOption::VALUE_NONE, 'Groups output by suggested package'),
        new InputOption('all', 'a', InputOption::VALUE_NONE, 'Show suggestions from all dependencies, including transitive ones'),
        new InputOption('list', null, InputOption::VALUE_NONE, 'Show only list of suggested package names'),
        new InputOption('no-dev', null, InputOption::VALUE_NONE, 'Exclude suggestions from require-dev packages'),
        new InputArgument('packages', InputArgument::IS_ARRAY | InputArgument::OPTIONAL, 'Packages that you want to list suggestions from.', null, $this->suggestInstalledPackage()),
    ])
        ->setHelp(<<<EOT

The <info>%command.name%</info> command shows a sorted list of suggested packages.

Read more at https://getcomposer.org/doc/03-cli.md#suggests
EOT
);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal