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

bazel completer #2545

Open
DD5HT opened this issue Oct 6, 2024 · 2 comments
Open

bazel completer #2545

DD5HT opened this issue Oct 6, 2024 · 2 comments
Labels
completer High level tracking issue for completer enhancement New feature or request fund Fundable with polar.sh

Comments

@DD5HT
Copy link

DD5HT commented Oct 6, 2024

Command

bazel

Description

Having bazel support in carapace would be really nice since it would help a lot when working in a large monorepo.

There is a completion script out there: https://bazel.build/install/completion but I haven't had a good experience with it.

I'm also open to invest some of my time into it if I would get some guidance.

Homepage

https://bazel.build/

Documentation

https://bazel.build/reference/command-line-reference

Repository

https://github.com/bazelbuild/bazel/

Complexity

XL

Anything else?

No response

Polar

Fund with Polar
@DD5HT DD5HT added completer High level tracking issue for completer enhancement New feature or request fund Fundable with polar.sh labels Oct 6, 2024
@rsteube
Copy link
Member

rsteube commented Oct 6, 2024

Lots of flags for that one. We could write a scraper for the java source, but seems bit of a hassle hooking into it.
I'd say we just parse the help output: https://github.com/carapace-sh/carapace-spec-parse/blob/master/pkg/parse/parse.go.

@DD5HT
Copy link
Author

DD5HT commented Oct 6, 2024

I will take a look.
Another point would be to have automatically query targets eg.

when running bazel run it would autocomplete the target based on the output of bazel query

@rsteube rsteube mentioned this issue Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completer High level tracking issue for completer enhancement New feature or request fund Fundable with polar.sh
Projects
None yet
Development

No branches or pull requests

2 participants