Skip to content

Migrate Unique ArgCompleters on the parameters themselves #6

@TechDufus

Description

@TechDufus

I just learned you can add [ArgumentCompleter()] with the arg complete scriptblock which provides the same functionality that Register-ArgumentCompleter does.

Need to think about pulling these scriptblocks into the functions themselves? This removes the centrally stored scriptblock that applies to multiple parameters. A downside would be having to edit all parameter definitions if a change to the arg completer is necessary.

On the other hand, if an arg completer is unique (in that it applies to one parameter on one function), then it could easily be moved onto the parameter. BUT if the module structure still supports an area for arg-complater definitions that aren't unique, it may be confusing to have some argcompleters on parameters and others in the module arg-completer folder.

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