mirror of
https://github.com/composer/composer
synced 2025-05-11 09:32:55 +00:00
add --skip-scripts option to install/update commands.
This commit is contained in:
parent
6c9c1f17ef
commit
cc8b33117a
3 changed files with 25 additions and 5 deletions
|
@ -33,6 +33,7 @@ class InstallCommand extends Command
|
|||
new InputOption('prefer-source', null, InputOption::VALUE_NONE, 'Forces installation from package sources when possible, including VCS information.'),
|
||||
new InputOption('dry-run', null, InputOption::VALUE_NONE, 'Outputs the operations but will not execute anything (implicitly enables --verbose).'),
|
||||
new InputOption('dev', null, InputOption::VALUE_NONE, 'Enables installation of dev-require packages.'),
|
||||
new InputOption('skip-scripts', null, InputOption::VALUE_NONE, 'Skips the execution of all scripts defines in composer.json file.'),
|
||||
))
|
||||
->setHelp(<<<EOT
|
||||
The <info>install</info> command reads the composer.json file from the
|
||||
|
@ -57,6 +58,7 @@ EOT
|
|||
->setVerbose($input->getOption('verbose'))
|
||||
->setPreferSource($input->getOption('prefer-source'))
|
||||
->setDevMode($input->getOption('dev'))
|
||||
->setSkipScripts($input->getOption('skip-scripts'))
|
||||
;
|
||||
|
||||
return $install->run() ? 0 : 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue