X Tutup
Skip to content

Preferred way to create completers for in-box cmdlets #25234

@iSazonov

Description

@iSazonov

Summary of the new feature / enhancement

We have CompletionCompleters.cs file with gigantic size. There's a lot of code for in-box cmdlet completers. That's how it happened historically.

Now we have ArgumentCompleterAttribute and IArgumentCompleter and it is preferable to use them

  1. to create new specific cmdlet completers
  2. to migrate existing code (Then, ideally, CompletionCompleters.cs file would contain only code related to language constructs as it should be.)

This will not only allow us to reduce the size of this file. We will be able to unify the code, remove duplication, add more tests, and distinguish common code that can be made public in the future so that users can use it in their projects.

It is also a step towards the decoupling of modules #9960

/cc @daxian-dbw @ArmaanMcleod @MartinGC94

Proposed technical implementation details (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Code Cleanupthe issue is for cleaning up the code with no impact on functionalityIssue-Enhancementthe issue is more of a feature request than a bugUp-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributors

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup