-
Notifications
You must be signed in to change notification settings - Fork 46
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
More hub-consistent merge-request method names #40
More hub-consistent merge-request method names #40
Conversation
5b49330
to
8e6b631
Compare
You could alias the old names or vice versa (theres a method for that) but it makes the help output a bit verbose and given this is a cli tool I'm not sure a BC break like this is a massive deal |
8e6b631
to
4633006
Compare
@stevelacey I see that commandr has support for alias. https://github.com/tj/commander.js/blob/master/examples/deploy#L27 I think it will be good idea to use that rather than doing these changes. |
@vishwanatharondekar I can add the aliases in but
Also note you can only have one alias per command currently in commander. I would argue for |
4633006
to
c13a8d7
Compare
What you are saying makes sense. As per my information I have some users using this in CI with print option. It will break for them since they are installing from github url. If we had npm and versions earlier we could have changed the version to 2.x and that could have helped maybe. I will keep this open for a while to come at conclusion. |
37f03d8
to
0412861
Compare
@vishwanatharondekar how about with this legacy aliases patch? Allows them to continue working – but doesn't advertise them in the help output 🙆♂️ Also adds |
0412861
to
f2ff403
Compare
f2ff403
to
b896706
Compare
This is so smart and bit ugly (global legacies) that I like it 😄 . Give me some time to test a bit and I will merge. It must be awesome working with you. |
I am merging this. By the way wouldn't it make more sense to add |
@vishwanatharondekar what do you mean add |
I meant a pull request in https://github.com/tj/commander.js |
Yeah they could do with support for multiple aliases, though it’s non-trivial to add, and I doubt they’d merge the legacy undocumented alias stuff, it’s too obscure of a use-case
|
I think these are better, obviously this is a breaking change and you're welcome to ignore me, but these are consistent with hub