bazelbuild/bazel

New command "bazel completion (bash|zsh|fish)"

Open

#26.472 geöffnet am 4. Juli 2025

Auf GitHub ansehen
 (2 Kommentare) (2 Reaktionen) (0 zugewiesene Personen)Java (4.465 Forks)batch import
P3help wantedteam-CLItype: feature request

Repository-Metriken

Stars
 (25.384 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 22T 20h) (77 gemergte PRs in 30 T)

Beschreibung

Description of the feature request:

Bazel should support printable completions like kubectl, helm, gh-cli, rustup... I can keep going. The main cause of delay of bazelbuild/bazelisk#29 although it was the most upvoted issue in bazelisk was that there was no trivial way to actually get it. I believe this shouldn't be the work of bazelisk, but rather a command in bazel itself.

Even if not for the bazelisk use case, providing completions directly in the subcommand itself is much more useful, coherent and simpler.

Which category does this issue belong to?

CLI

What underlying problem are you trying to solve with this feature?

No response

Which operating system are you running Bazel on?

No response

What is the output of bazel info release?

No response

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse HEAD ?

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

Contributor Guide