Prerequisites
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