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 }}
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.
I've been diving into PowerShell and seeing what we can do in terms of tab completion.
Cobra has some built in support for PowerShell completion, however, there are some problems related to installing and sourcing the completion.
In PowerShell i could curl down the zip but had to create my own unzip function. Furthermore you have to source the completion script by first piping it to a file (and possibly change permissions).
To make corectl a tool that works well for Windows users would require quite a bit of work. Probably by building a modified version of the cobra's existing completion. Also, the executable takes arguments and parameters in way that will seem foreign in a PowerShell context.
In conclusion, adapt corectl to the PowerShell context would probably include the following tasks
Offer corectl on to chocolaty or find another smooth installation way
I've been diving into PowerShell and seeing what we can do in terms of tab completion.
Cobra has some built in support for PowerShell completion, however, there are some problems related to installing and sourcing the completion.
In PowerShell i could curl down the zip but had to create my own unzip function. Furthermore you have to source the completion script by first piping it to a file (and possibly change permissions).
To make
corectl
a tool that works well for Windows users would require quite a bit of work. Probably by building a modified version of the cobra's existing completion. Also, the executable takes arguments and parameters in way that will seem foreign in a PowerShell context.In conclusion, adapt corectl to the PowerShell context would probably include the following tasks
This is by no means trivial.
The text was updated successfully, but these errors were encountered: