1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 16:42:57 +00:00

Merge pull request #10320 from GromNaN/command-completion

Add completion to commands options and arguments
This commit is contained in:
Jordi Boggiano 2022-06-01 21:59:39 +02:00 committed by GitHub
commit ef06702e45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 725 additions and 125 deletions

View file

@ -467,7 +467,7 @@ class Application extends BaseApplication
if (null === $this->composer) {
try {
$this->composer = Factory::create($this->io, null, $disablePlugins, $disableScripts);
$this->composer = Factory::create(Platform::isInputCompletionProcess() ? new NullIO() : $this->io, null, $disablePlugins, $disableScripts);
} catch (\InvalidArgumentException $e) {
if ($required) {
$this->io->writeError($e->getMessage());