Skip to content

The parameter -NativeFallback is added to Register-ArgumentCompleter to support registering a cover-all completer for native commands #12321

@daxian-dbw

Description

@daxian-dbw

Prerequisites

  • Existing Issue: Search the existing issues for this repository. If there is an issue that fits your needs do not file a new one. Subscribe, react, or comment on that issue instead.
  • Descriptive Title: Write the title for this issue as a short synopsis. If possible, provide context. For example, "Document new Get-Foo cmdlet" instead of "New cmdlet."

Summary

PR PowerShell/PowerShell#25230 adds the parameter -NativeFallback to Register-ArgumentCompleter to support registering a cover-all completer for native commands.

So, the doc about this cmdlet needs to be updated accordingly.

Details

  • When a native command doesn't have a specific completer for it, the cover-all completer will be used for it.
  • This will make it easy for a module like Microsoft.PowerShell.UnixTabCompletion to hook up with PowerShell to provide tab completion for many native commands on Linux and macOS systems.

After the change, a new parameter set gets added to Register-ArgumentCompleter:

Register-ArgumentCompleter -ScriptBlock <scriptblock> [-NativeFallback] [<CommonParameters>]

Please see the PR description for details and more context.

Articles

No response

Related Source Pull Requests

PowerShell/PowerShell#25230

Related Source Issues

PowerShell/PowerShell#25230

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue-doc-ideaIssue - request for new content

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions