Add bazelisk completion bash/fish command#706
Add bazelisk completion bash/fish command#706meteorcloudy merged 2 commits intobazelbuild:masterfrom thii:completion
bazelisk completion bash/fish command#706Conversation
|
@fweikert @meteorcloudy Can you take a look? |
|
FYI, @fmeum is landing bazelbuild/bazel#26479 in Bazel. But I guess this is still useful to support older bazel versions? @fmeum Can you take a look since you are already working on this? |
|
I will take a closer look tomorrow. This does look like a pretty good "polyfill" for what What's the plan to handle the user switching between projects with different Bazel versions? Ideally |
|
I actually haven't thought about that, just wanted to have an easy way to get the completion script of the correct bazel version (the completion script installed by system package managers like apt always installs the latest). |
fmeum
left a comment
There was a problem hiding this comment.
Makes sense, we can always add such a script later.
Could you add the basic snippets needed to enable the completion scripts for the two supported shells (based on bazelisk completion <shell>)?
Otherwise this looks good (and very well tested).
This command prints shell completion scripts for the active Bazel version. The completion scripts are downloaded on-demand and cached to Bazelisk CAS cache. This is to support generating completion scripts for older Bazel versions.
meteorcloudy
left a comment
There was a problem hiding this comment.
Thanks for the contribution! And thanks @fmeum for reviewing!
|
I LL try...what is the mistake to fix it .
Στις Δευ 6 Οκτ 2025, 09:37 ο χρήστης jameslovesjodi4ever-dot <
***@***.***> έγραψε:
… ***@***.**** approved this pull request.
—
Reply to this email directly, view it on GitHub
<#706 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5HLDBAOHRRFGEZ4DDZOFJD3WIEZDAVCNFSM6AAAAACA375O42VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTGMBSHE4DMOJRGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
This command prints shell completion scripts for the active Bazel version. The completion scripts are downloaded on-demand and cached to Bazelisk CAS cache. This is to support generating completion scripts for older Bazel versions.
Closes #29