-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Fish does not accept dash or colon in vars #1122
Conversation
@marckhouzam thanks for your fix, I just tested with your branch (for golangci-lint), and it's working fine 💯. Hope this one will land in soon 💯 |
Another bitten one at |
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.
I've tested this in my fish environment and with some test commands. Thanks for adding tests for this too!
lgtm!
60f26e0
to
4dd86de
Compare
This has been rebased to master after the merging of #1070. Maybe @sayboras and/or @blaggacao can confirm it still works for their project? I did test on my side by adding a |
Fixes spf13#1121. This is for programs that may contain a : or - in their name. Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
4dd86de
to
5782fed
Compare
@marckhouzam seems like it didn't work anymore, I haven't enabled debug to see more details though. Will do once I have some free time. FYI. I am using the below replace directive statement. replace github.com/spf13/cobra => github.com/VilledeMontreal/cobra v0.0.6-0.20200629203744-5782fedb5fb1 |
@sayboras Works for me 😄 I assume you are working with Then I ran:
If I remove the This is the patch I applied on top of master to test things. You can save it to a file, say
|
@marckhouzam oops, I had the same changes, but used the wrong binary to test. It's working fine for me :), sorry for any inconvenience caused :( |
@sayboras no problem. Thanks for confirming it works. |
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.
LGTM :)
I'd love to give my review, but I'm currently knee deep in another context and can't switch that easily. I hope, my opinion is not needed. |
Fixes #1121.
This is for programs that may contain a
:
or-
in their name.Those characters are not accepted in variables for fish, so it was breaking fish completion.
This PR replaces
-
and:
with a_
in the fish completions script.