WillAbides / kongplete

MIT License
30 stars 9 forks source link

Add support for command aliases #17

Open AlainRoy opened 1 year ago

AlainRoy commented 1 year ago

This change allows kongplete to recognize command aliases.

If you have something like "my-cli update ... " and "up" is an alias for update, kongplete wouldn't recognize up as valid. This not only affected completion for the "up" command, but also for commands and flags that followed.

The fix is simple and small. This PR includes tests, and I also tested the behavior in a CLI I'm contributing to, to ensure that the user behavior is as expectedd.

AlainRoy commented 1 year ago

@WillAbides -- is this PR something you'd be willing to consider?

Thanks!

AlainRoy commented 1 year ago

Just checking in, @WillAbides -- would you be willing to consider this PR, or should I take another approach? Thanks!