-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[Misc] homebrew: Generate shell completions for bash, fish, and zsh #30032
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
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
42ba9d7 to
bd211a7
Compare
|
|
|
Hello @bebound 👋. I'm a maintainer for Homebrew. I'm seeking some clarity on your comment. Are you going to be using a method like |
|
Hi @p-linnane, formula generation logic is here:
It downloads the upstream formula, replaces the resource section, and makes some additional modifications. @maxbrunet Your PR also bump Python to 3.12, which may break the |
|
I'm the one who made the change bumping to Python 3.12. This was based on the release notes for azure-cli 2.64.0 stating it was supported for packaging. EDIT: Here is a PR adding |
Related command
Misc
Description
This switches to generate the completion with
register-python-argcompletedirectly, similarly to other Python tools like pipx in Homebrew.The
az.completion.shscript is not the actual completion, but runseval:azure-cli/src/azure-cli/az.completion.sh
Line 11 in 3194af8
This also adds completion support for zsh and fish.
Initially raised at Homebrew/homebrew-core#192912, but it was pointed out that the source of truth is here.
Testing Guide
Follow https://github.com/Homebrew/homebrew-core/blob/9ce8743dc3ea3a130f80dc2c120e896c7eaf47a0/CONTRIBUTING.md#to-contribute-a-fix-to-the-foo-formula
History Notes
[Misc] homebrew: Generate shell completions for bash, fish, and zsh
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.