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\CommandCode
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
);
}