Open srid opened 1 month ago
Generating completions is fairly simple using clap-complete
The biggest problem though is working out how to install completions when installing bacon via cargo. As far as I've found so far, this is difficult / manual as cargo doesn't want to be be a package manager.
And a possible way forward on this might be to implement this on cargo-binstall.
https://github.com/cargo-bins/cargo-binstall/issues/1978#issuecomment-2490866298
https://docs.rs/clap_complete/latest/clap_complete/ might come in handy here to provide shell completion support.
For example, https://just.systems/ completes like this:
Just as
just
can complete the targets fromjustfile
, I imagine thatbacon
complete the jobs frombacon.toml
.