Hey Stephen,
first of all ... let me thank you for that awesome plugin. The idea of fetching valid suggestions from the available *Commands and InputOptions is brilliant and logical.
I've seen other completion functions capable of providing completions for the require command by using a (cached) result of composer show.
composer show -a | grep -v '^No composer'
... can be used to find all available packages without the line ...
No composer.json found in the current directory, showing available packages from packagist
... if composer is executed inside a directory that has no composer.json.
I didn't have the time to dive into the code of the CompletionCommand yet.
Would you rather add something like this in the bash/zsh-snippets or do this in PHP with a ComposerCompletionCommand that extends CompletionCommand added to this repository?
Hey Stephen,
first of all ... let me thank you for that awesome plugin. The idea of fetching valid suggestions from the available
*Commands andInputOptions is brilliant and logical.I've seen other completion functions capable of providing completions for the
requirecommand by using a (cached) result ofcomposer show.... can be used to find all available packages without the line ...
... if composer is executed inside a directory that has no
composer.json.I didn't have the time to dive into the code of the
CompletionCommandyet.Would you rather add something like this in the bash/zsh-snippets or do this in PHP with a
ComposerCompletionCommandthat extendsCompletionCommandadded to this repository?