You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Autocomplete [tab] winget commands in PowerShell #146
This isn't fully fleshed out but could be done so fairly easily. There's a fleshed-out version here. That said, rather than folks external to this project having to provide the completions and then update those completions when new commands are added, it would be better to have winget return completions via a hidden complete command. This is what dotnet does which makes the arg completer func very simple:
Activity
rkeithhill commentedon May 26, 2020
You can do this yourself with PowerShell's
Register-ArgumentCompletercommand like so:This isn't fully fleshed out but could be done so fairly easily. There's a fleshed-out version here. That said, rather than folks external to this project having to provide the completions and then update those completions when new commands are added, it would be better to have
wingetreturn completions via a hiddencompletecommand. This is whatdotnetdoes which makes the arg completer func very simple:JohnMcPMS commentedon Aug 27, 2020
Closing issue as this has been released, see the doc for more details.