function UnpackCommand::configure
File
-
composer/
Plugin/ RecipeUnpack/ UnpackCommand.php, line 24
Class
- UnpackCommand
- The "drupal:recipe-unpack" command class.
Namespace
Drupal\Composer\Plugin\RecipeUnpackCode
protected function configure() : void {
$name = 'drupal:recipe-unpack';
$this->setName($name)
->setDescription('Unpack Drupal recipes.')
->addArgument('recipes', InputArgument::IS_ARRAY, "A list of recipe package names separated by a space, e.g. drupal/recipe_one drupal/recipe_two. If not provided, all recipes listed in the require section of the root composer are unpacked.")
->setHelp(<<<EOT
The <info>{<span class="php-variable">$name</span>}</info> command unpacks dependencies from the specified recipe
packages into the composer.json file.
<info>php composer.phar {<span class="php-variable">$name</span>} drupal/my-recipe [...]</info>
It is usually not necessary to call <info>{<span class="php-variable">$name</span>}</info> manually,
because by default it is called automatically as needed, after a
<info>require</info> command.
EOT
);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.