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

Clap bridge doesn't seem to work #2564

Closed
mcexit opened this issue Oct 24, 2024 · 3 comments · Fixed by #2567
Closed

Clap bridge doesn't seem to work #2564

mcexit opened this issue Oct 24, 2024 · 3 comments · Fixed by #2567
Labels
documentation Improvements or additions to documentation enhancement New feature or request fund Fundable with polar.sh

Comments

@mcexit
Copy link

mcexit commented Oct 24, 2024

Request

I'm new to carapace-bin, but have been pleasantly surprised. I discovered that most Cobra-based software built with Go work by merely adding a %APPDATA%/carapace/bridges.yaml file:

---
cscli: cobra
flux: cobra
forwarder: cobra
rclone: cobra
shiori: cobra
trivy: cobra

This works amazing, with the exception of one tool cscli that has duplicate entries. However, I've tried the clap-based bridge with multiple programs now and none of them seem to work. I'm not sure if this is a documentation issue, where I just don't know how to use carapace-bin correctly, or some other limitation.

Proposed solution

Document the clap-based bridge and add options to make it compatible with multiple clap-based programs that provide completion (e.g. ruff, rye, ludusavi, wasmer, etc.)

Anything else?

No response

Polar

Fund with Polar
@mcexit mcexit added enhancement New feature or request fund Fundable with polar.sh labels Oct 24, 2024
@rsteube
Copy link
Member

rsteube commented Oct 24, 2024

Ah yes, I should add a notice on that.
The bridge relies on the Rust-Native Completion Engine in clap which is still under development.

Best way for clap based commands at the moment is to scrape them with carapace-spec-clap.

@rsteube rsteube added the documentation Improvements or additions to documentation label Oct 24, 2024
@rsteube rsteube closed this as completed Oct 24, 2024
@rsteube rsteube reopened this Oct 24, 2024
@rsteube
Copy link
Member

rsteube commented Oct 24, 2024

cscli is https://docs.crowdsec.net/docs/cscli/ ?

@mcexit
Copy link
Author

mcexit commented Oct 25, 2024

cscli is https://docs.crowdsec.net/docs/cscli/ ?

Yes, that is the one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request fund Fundable with polar.sh
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants