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
Currently, we have to exec getenvoy fetch to know which version is available before executing getenvoy run. It is a small but actual pain for me. It would be nice to introduce CLI completion (bash-like or zsh-like) to getenvoy, especially getenvoy run. For instance, getenvoy can complete available "flavors" when typed "tab" after getenvoy run.
GetEnvoy uses https://github.com/spf13/cobra, which has a way to generate CLI completion for some popular shells (bash, zsh, fish, PowerShell) 1. It could be done with it.
I'm going to deprioritize this for now though someone else can grab it.
Note that auto-completion of built-in commands is usually easier and different than auto-completion of dynamic args (ex envoy versions). In each case, how to install is somewhat shell specific, so testing this well is a fair amount of work unless we punt and assume things just work.
Currently, we have to exec
getenvoy fetch
to know which version is available before executinggetenvoy run
. It is a small but actual pain for me. It would be nice to introduce CLI completion (bash-like or zsh-like) togetenvoy
, especiallygetenvoy run
. For instance, getenvoy can complete available "flavors" when typed "tab" aftergetenvoy run
.GetEnvoy uses https://github.com/spf13/cobra, which has a way to generate CLI completion for some popular shells (bash, zsh, fish, PowerShell) 1. It could be done with it.
Footnotes
https://github.com/spf13/cobra/blob/master/shell_completions.md ↩
The text was updated successfully, but these errors were encountered: