-
Notifications
You must be signed in to change notification settings - Fork 553
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
Test for #755 #756
Test for #755 #756
Conversation
@KishiTheMechanic this doesn't seem to be fixing the behavior you mentioned earlier. This seems to remove the |
I think it's ok solution for now because if there's no |
@KishiTheMechanic can you add a test demonstrating this behavior please? |
What do you mean? |
The tests are all showing the main case of removing "thor" but they are not showing any new case that fixes the problem originally stated (where nested subcommands don't show the parent command). |
I thought |
This is why I'd like to see a test demonstrating the issue so we can confirm that the fix works for the original case. 😄 |
for example,
This is the problem. Then I changed to below.
|
Ah OK - so rather than adding in the |
Yes, it's a small progress but actually better than now I think. |
Yes... but if we're going to go ahead and try to fix this then I'd rather fix it the right way rather than doing a half-fix now and a full fix later. |
Sounds great! |
Could you please let me upload the folk version to the gem (like thor_temp) as temporary solution for now? |
@KishiTheMechanic not sure I understand the question. You're free to use your own fork in your projects if you like, just reference your Github repo:
|
Yes, but I can't use it on our gem... |
Yeah... unfortunately there's no good way to specify a fork as a dependency on a gem. However, you can make a note in your README that to use it you need to add the fork of the Having said that, the best solution would indeed be to put in the "real" fix so we can merge 😄 |
After all, I think you should accept this temporary solution now. All Thor made CLI keeps lying until now. I think it's huge problem. After this solution, at least the CLIs stop lying. |
I think we shouldn't nest commands too much in Thor and will refactor our gem to make shallow structure because it's not the only problem in too much nested commands. |
Related this issue #627 , #755
Modified tests also.