Is there a way to get powershell autocomplete working for an application?

Powershell has a large autocomplete that makes it easy to autocomplete options. Is it possible to provide this autocomplete when calling the application? For example.

.\myscript.ps1 -Databa (pressing tab here will fill in Database)

but if you ultimately decide to replace the script with the correct application

.\myapp.exe -Databa (pressing tab does nothing)

An application is a .NET application (if that helps). Is there any way for this to connect to any function that is used to determine the parameters?

+4
source share
1 answer

Sort, yes. But all this is within powershell; you would not do anything in the .Net executable.

@PetSerAl, PowerShell 5 .

( ) .

posh- git git .

TabExpansionPlusPlus.

+2

Source: https://habr.com/ru/post/1620635/


All Articles