Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shell completion #226

Open
srid opened this issue Oct 5, 2024 · 2 comments
Open

Shell completion #226

srid opened this issue Oct 5, 2024 · 2 comments

Comments

@srid
Copy link

srid commented Oct 5, 2024

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:

image

Just as just can complete the targets from justfile, I imagine that bacon complete the jobs from bacon.toml.

@joshka
Copy link
Contributor

joshka commented Nov 21, 2024

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.

@joshka
Copy link
Contributor

joshka commented Nov 22, 2024

And a possible way forward on this might be to implement this on cargo-binstall.

cargo-bins/cargo-binstall#1978 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants