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

Remove fish command completions for excluded commands #18793

Merged

Conversation

jaminthorns
Copy link
Contributor

@jaminthorns jaminthorns commented Nov 20, 2024

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew style with your changes locally?
  • Have you successfully run brew typecheck with your changes locally?
  • Have you successfully run brew tests with your changes locally?

This removes fish command completions (but keeps argument completions) for commands in the COMPLETIONS_EXCLUSION_LIST list.

It also removes unnecessary exclusions of *instal aliases in command suggestions in bash and fish completions, since those were removed from internal_commands_list.txt in #10229. This makes COMPLETIONS_EXCLUSION_LIST the single source of truth for commands to exclude from completions.

@jaminthorns jaminthorns marked this pull request as draft November 20, 2024 16:21
@jaminthorns jaminthorns force-pushed the remove-instal-alias-fish-completions branch from 7512f9d to feeb95e Compare November 20, 2024 17:03
@jaminthorns jaminthorns changed the title completions/fish: Remove command completions for *instal aliases Remove fish command completions for excluded commands Nov 20, 2024
@jaminthorns jaminthorns marked this pull request as ready for review November 20, 2024 17:12
This removes fish command completions (but keeps argument completions)
for commands in the `COMPLETIONS_EXCLUSION_LIST` list.

It also removes unnecessary exclusions of `*instal` aliases in command
suggestions in bash and fish completions, since those were removed from
`internal_commands_list.txt` in #10229. This makes
`COMPLETIONS_EXCLUSION_LIST` the single source of truth for commands to
exclude from completions.
@jaminthorns jaminthorns force-pushed the remove-instal-alias-fish-completions branch from f4c95a5 to c5253b2 Compare November 20, 2024 23:35
Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @jaminthorns, particularly on your first PR! Appreciated your ability to go from failing CI to a perfect solution here. You rock!

@MikeMcQuaid MikeMcQuaid merged commit 9dad99b into Homebrew:master Nov 21, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants