-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console] Issue 43602 : Add fish completion #43641
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
82daaae
to
d90a1f7
Compare
I just saw test errors. I'll fix it tomorrow. |
d90a1f7
to
9253b0c
Compare
This comment has been minimized.
This comment has been minimized.
Does this handle properly values containing backslashes or spaces ? see #43664 for the bash completion |
@stof otb I don't think. i'll take a look soon. Thanks for the feedback. |
Does this mean i have to change my rebase branch for this PR ? |
4095d09
to
e1327df
Compare
…nds (noniagriconomie) This PR was merged into the 5.4 branch. Discussion ---------- [PasswordHasher] Add autocompletion for security commands | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Ref #43594 | License | MIT | Doc PR | Related to #43594 (comment) I have a question regarding `@wouterj` 's comment on the issue Also, the `password` is the first argument right now, should we swap it to be after `user-class`? Still WIP, I am using `fish` and want to test as well #43641 Commits ------- 49f45a9 [Console] Add autocompletion for security commands
If it can help, there was a fish plugin for Symfony 2: https://github.com/mojoLyon/fish-sf |
e1327df
to
a8f3d6c
Compare
Rebased onto 6.1, and seams to work. At least "on my machine" ;) |
Does it work with the following features:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just tested this and it indeed works quite nicely! Thanks for working on this @guillaume-a!
I only discovered it doesn't work correctly when autocompleting something in the middle of a command, e.g. bin/console secret:set --| SOME_SECRET
(|
being the cursor) should provide completion values for --
option names.
bff8096
to
5335026
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
One thing we should probably update is how we document the installation process (as it's different than Bash). But that'll break a lot of test, let's rethink how we use the help message outside of this PR.
Thank you @guillaume-a. |
I tried to implement fish auto completion.
I hope it will work fine for you guys, let me know.
You can execute
bin/console completion fish >> ~/.config/fish/completions/sf_console.fish
and source the file