Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Bash auto complete does not display all possible tasks for my system. #80
Love this tool. It's really awesome and I appreciate the auto complete script you threw in for it. The only trouble is, I recently rewrote a build system from being a really, really big un-maintainable single grunt file to a modular system by using the plugin load-grunt-config and jit-grunt. These are great plugins for making a clearer a more maintainable build system as we grow it overtime. The only trouble is that breaks the assumption of the bash auto complete script.
Now if this line were to read grunt --version --verbose --tasks I would be in business . As an aside, running grunt with a --tasks flag and not provide it an input causes an error on my system, but that is probably a wider issue.
Basically I don't really know what would be the best approach to resolve this issue. You should probably provide a way for people to specify those additional parameters to the auto complete script. What that would look like I don't really know. Maybe an environment variable? Perhaps you allow me to have grunt run a script I would write and maintain, but then I can see other people having this issue in the future as well. And you know, open source or whatever.
I may have written myself into a corner on this because of the way those plugins work, but I'm pretty sure there could be some sort of solution for this. Any thoughts?