Repository navigation
add istioctl completions - #8343
Conversation
to replicate or update run `istioctl completion fish > share/completions/istioctl.fish`
5e01246 to
c3d6fc9
Compare
faho
left a comment
There was a problem hiding this comment.
This is going to need quite a bit of work before it's acceptable for inclusion in fish.
Mostly the debug and compatibility guff needs to be ripped out, and the completion refactored to avoid relying on an awkward global variable.
Consistency with fish is much much more important than consistency with other shells.
yes please, let's do that instead. The autogenerated script contains implementation details of cobra (things like Ideally, the |
|
Sorry, I didn't get around to doing this earlier. I've followed @krobelus's suggestion and switched over to the autogenerated completion. As they've explained this approach is probably more stable and requires no manual changes on generated code (and it's more future-proof) |
Description
This PR adds completion for
istioctlto fish.istioctlprovides a command (istioctl completion fish) to generate the completion. My commit is that script verbatim. The script is fairly generic and not likely to change. It calls a "secret"/hidden subcommand ofistioctlcalledistioctl __completionto generate the concrete completion results.If you don't want to have this autogenerated script in your code base, my suggested alternative for
istioctl.fishwould be this:Let me know which one you prefer.
Fixes issue (no connected issue)
TODOs: