bazelbuild/bazel

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

Open

#26,472 创建于 2025年7月4日

在 GitHub 查看
 (2 评论) (2 反应) (0 负责人)Java (4,465 fork)batch import
P3help wantedteam-CLItype: feature request

仓库指标

Star
 (25,384 star)
PR 合并指标
 (平均合并 22天 20小时) (30 天内合并 77 个 PR)

描述

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

贡献者指南