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

Breadcrumb

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

function HomeCommand::configure

@inheritDoc

Overrides Command::configure

File

vendor/composer/composer/src/Composer/Command/HomeCommand.php, line 36

Class

HomeCommand
@author Robert Schönthal <seroscho@googlemail.com>

Namespace

Composer\Command

Code

protected function configure() : void {
    $this->setName('browse')
        ->setAliases([
        'home',
    ])
        ->setDescription('Opens the package\'s repository URL or homepage in your browser')
        ->setDefinition([
        new InputArgument('packages', InputArgument::IS_ARRAY, 'Package(s) to browse to.', null, $this->suggestInstalledPackage()),
        new InputOption('homepage', 'H', InputOption::VALUE_NONE, 'Open the homepage instead of the repository URL.'),
        new InputOption('show', 's', InputOption::VALUE_NONE, 'Only show the homepage or repository URL.'),
    ])
        ->setHelp(<<<EOT
The home command opens or shows a package's repository URL or
homepage in your default browser.

To open the homepage by default, use -H or --homepage.
To show instead of open the repository or homepage URL, use -s or --show.

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

API Navigation

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