lychee icon indicating copy to clipboard operation
lychee copied to clipboard

Add shell completions

Open orhun opened this issue 1 year ago • 3 comments

lychee_bin already uses clap which means we can utilize the following crates:

Then downstream sources (i.e. package managers) can consume the generated files :)

orhun avatar Nov 08 '24 18:11 orhun

Yeah, that would definitely be two great improvements. This partially duplicates #1505

thomas-zahner avatar Nov 10 '24 09:11 thomas-zahner

Closing in favor of #1505. Will reverence the clap tools over there. Thanks!

mre avatar Jan 06 '25 21:01 mre

I'm reopening this since I'm addressing the man page generation in #1858 but not yet shell completions. This is why I renamed the issue from Add shell completions and manpage to Add shell completions.

Note that we should use the --generate flag to generate shell completions, probably in combination with clap_complete.

thomas-zahner avatar Oct 03 '25 14:10 thomas-zahner