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:
commit
ef06702e45
35 changed files with 725 additions and 125 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue