bacon
bacon copied to clipboard
Shell completion
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 from justfile, I imagine that bacon complete the jobs from bacon.toml.
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.
- https://github.com/clap-rs/clap/discussions/4868
- https://github.com/rust-lang/cargo/issues/2729
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