Add fish shell completion by aldisruiz · Pull Request #5954 · wp-cli/wp-cli
Navigation Menu
{{ message }}
- Notifications You must be signed in to change notification settings
- Fork 1k
Merged
ernilambar merged 2 commits intowp-cli:mainfrom
Jun 17, 2024Merged
Add fish shell completion#5954
ernilambar merged 2 commits intowp-cli:mainfrom
Add fish shell completion#5954
ernilambar merged 2 commits intowp-cli:mainfrom
Conversation
Copy link
Contributor
aldisruiz
commented
May 31, 2024
aldisruiz
commented
Summary
This pull request adds a Fish shell completion script for wp-cli.
Changes
- Adds a Fish completion script for the
wpcommand. - Handles file completions when completions include
<file>. - Handles unnecessary whitespace in completions.
Testing
- Tested in Fish shell version
3.7.1. - Verified completions for various
wpcommands and options. - Works with aliases when in a directory that contains them.
Documentation
Included a link to the Fish shell documentation for where to put completions.
Add Fish shell dynamic completions for wp-cli.
aldisruiz
requested a review
from a team
as a code owner
Copy link
Retro64XYZ
commented
Jun 4, 2024
Retro64XYZ commented
Jun 4, 2024This works for me. Thank you for creating this.
Copy link
Member
ernilambar
commented
Jun 4, 2024
ernilambar commented
Jun 4, 2024I have tested PR locally and it is working as expected.
@aldisruiz Can you please create PR with the instruction for setting up Fish tab completion? Suitable place for the instruction is here https://github.com/wp-cli/handbook/blob/main/installing.md#tab-completions
ernilambar approved these changes Jun 4, 2024
ernilambar reviewed Jun 4, 2024
utils/wp.fish
Outdated
Show resolved
Hide resolved
utils/wp.fish Outdated Show resolved Hide resolved
aldisruiz
mentioned this pull request
aldisruiz
requested a review
from ernilambar
ernilambar approved these changes Jun 5, 2024
ernilambar
added this to the
2.11.0 milestone
ernilambar
added
the
scope:framework
label
ernilambar
merged commit
f7db3c1
into
wp-cli:main
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment