-
Notifications
You must be signed in to change notification settings - Fork 40
CP-1122 Bash completions #96
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
Cool! Any idea if this would work with zsh as well? |
I spent a few minutes looking at the zsh completion documentation. It is pretty dense. I'm sure it could be done easily by someone with the requisite knowledge, however. |
I'm going to add completions for subcommands as well. So please don't merge this yet. I should have mentioned that in the description. I just wanted to get it up here to get some feedback. If people are interested in zsh, I can definitely look into it. @bencampbell-wf is kind of a zsh wizard, so maybe he would be willing to put a few minutes into it as well. |
Current coverage is
|
This is awesome! I would also be interested in zsh completions 😃 |
It looks like the completion definitions for zsh are a cinch. The trick is installing them. While bash has a defacto user directory you can symlink your completion scripts into, zsh requires and update to I can take a crack at it if it's wanted. |
OK, I'm pretty happy with the Bash completions at this point. @bencampbell-wf if you want to you can add zsh completions to this PR so we get them in all at once. Or we can do them separately. |
@georgelesica-wf any way a check for this could be added so that we could display a meaningful error message if the alias doesn't exist? |
@evanweible-wf oh there wouldn't be a problem if it doesn't exist, it just only does completion if you use |
+1 |
Oh, duh 😄 +1 |
@jayudey-wf ready for merge @bencampbell-wf if you get zsh magic together, please submit as a separate PR (I know I'd use it...) |
I realized I was making some assumptions about the environment people will have, so I added a bit more explanation to the README. |
I'm not sure why the build is failing, I didn't change any code... |
It's an issue with Dart 1.13, I'm looking into it |
Also +1 to the readme updates. |
QA Resource Approval: +10
Merging into master. |
Problem
People don't like typing, and dart_dev makes people type commands.
Solution
Add some Bash completions to dart_dev. I did these for myself and I thought maybe other people would want to use them as well.
They operate on the expectation that the
ddev
alias exists.FYI
@evanweible-wf