Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Command aliases or fuzzy command lookup? #5
Thanks again for this library! I'm finding it really helpful on a little side/learning project I've been working on.
I recently found myself wanting to provide aliases for my commands so that I could use a shorter name on the command line. One way to do this would be to add an
However, I see in the README that one of the roadmap ideas is
A first cut at fuzzy handling would likely involve just matching prefixes; that could be improved later if needed. Doing a prefix match would also address my need, as the aliases I want to define are prefixes of the full command names.
I've looked through the code, and I don't think it would be terribly difficult to implement either of these ideas.
I'm willing to start working on a PR for this, but first I'd like to know which of these two directions you'd prefer.
Do you prefer the fuzzy (starting with prefix) matching? Or do you prefer the alias idea?
My time is somewhat limited, so I can't guarantee how fast I can get this done, but I'm willing to do the work on it.
Hi, and thank you very much for offering to help.