cloudflared icon indicating copy to clipboard operation
cloudflared copied to clipboard

Add support for generating shell completions

Open jpeach opened this issue 2 years ago • 0 comments

Describe the feature you'd like

It's pretty common these days for programs to bundle their own shell completion generators. It would be great if cloudflared completion $SHELL emitted the completion function for the specified shell.

Describe alternatives you've considered

Could write a shell completion function by hand, but there's a lot of overhead to do that and then to distribute it so that people can use it.

Additional context

IIUC, urfave supports bash (and maybe fish) completions. That probably covers a lot of cases.

jpeach avatar Feb 28 '22 02:02 jpeach