Skip to content

[Feature] Complete packages after require statement #1

@nifr

Description

@nifr

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions