-
Notifications
You must be signed in to change notification settings - Fork 257
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
Tab completion #113
Comments
That's a great idea. I'll have to look into it. PRs welcome ;)
…On Sat, Mar 31, 2018, 3:46 PM Andrew Pennebaker ***@***.***> wrote:
Mage is so amazing, a breath of fresh air for build tools! Love the
minimalism and potential for highly cross-platform builds! Hey, could we
get some tab completion for target names? Perhaps a bash completion script?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#113>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADCcyPmuKKDLujMrUruVcJ3sauOLx5Ouks5tj90mgaJpZM4TClnW>
.
|
I saw some other tool (I forget which now) that would spit out the right scripts from a command (for either bash or zsh). That seems like a good way to do it. |
https://github.com/posener/complete could help |
So..... I think for now I'm going to close this, because I worry it's going to be a maintenance headache for little real gain. We can post completion scripts on the wiki or the website, and not have to worry about having our code do exactly the right thing. |
I am not a Bash developer, however this works for me: mage-completion.sh:
I'm using it this way:
|
You sir win one free Internet! Could we publish this to Homebrew to make it more accessible :) |
Sure :) |
I created a mage CLI frontend to circumvent bash completion. Maybe someone else finds this useful. |
Dude, that is freakin' cool! |
zsh version reusing the bash version. If you have one with the custom bash functions implemented in pure zsh; feel free to share.
Also, this (https://github.com/urfave/cli/blob/master/docs/v2/manual.md#bash-completion) is a good implementation of general bash/zsh autocompletion for cli tools. The completion scripts (https://github.com/urfave/cli/tree/61026898ff6cbe7c1b4f19feafc6f9ffe098d7e2/autocomplete) are simple and all the logic is go and works across interpreters. |
Thanks a lot for #113 (comment) ! Since one can force colored output by setting
the completion script can be adjusted accordingly with:
|
Mage is so amazing, a breath of fresh air for build tools! Love the minimalism and potential for highly cross-platform builds! Hey, could we get some tab completion for target names? Perhaps a bash completion script?
The text was updated successfully, but these errors were encountered: