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

Breadcrumb

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

function ScriptAliasCommand::configure

Overrides Command::configure

File

vendor/composer/composer/src/Composer/Command/ScriptAliasCommand.php, line 53

Class

ScriptAliasCommand
@author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Composer\Command

Code

protected function configure() : void {
    $this->setName($this->script)
        ->setDescription($this->description)
        ->setAliases($this->aliases)
        ->setDefinition([
        new InputOption('dev', null, InputOption::VALUE_NONE, 'Sets the dev mode.'),
        new InputOption('no-dev', null, InputOption::VALUE_NONE, 'Disables the dev mode.'),
        new InputArgument('args', InputArgument::IS_ARRAY | InputArgument::OPTIONAL, ''),
    ])
        ->setHelp(<<<EOT
The <info>run-script</info> command runs scripts defined in composer.json:

<info>php composer.phar run-script post-update-cmd</info>

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

API Navigation

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