Skip to content
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

[#1388] Fix subcommand aliases autocomplete regression #1430

Merged
merged 3 commits into from
Oct 31, 2021

Conversation

NewbieOrange
Copy link
Contributor

@NewbieOrange NewbieOrange commented Sep 11, 2021

This seems to fix #1388 regression, and I have added a new test for the issue.

However, this cause #1352 testIssue1352_SubcommandNameResourceBundle to fail, which seemed to be caused by descriptor.commandName is ${project.cli.command}, and it's from commandLine.getSubcommands().entrySet().?.getKey(), indicating there might be some issue in resource bundle propagation for subcommands.

@remkop any thoughts?

@NewbieOrange
Copy link
Contributor Author

The subcommands now get their name inerpolated in addSubcommand(), fixing #1352 test regression.

Not sure it is the correct solution - but all tests now pass.

@NewbieOrange
Copy link
Contributor Author

Still need some changes, not ready for merge yet.

@remkop
Copy link
Owner

remkop commented Sep 13, 2021

Still need some changes, not ready for merge yet.

Okay, understood. Thank you for looking at this!

@NewbieOrange
Copy link
Contributor Author

NewbieOrange commented Sep 13, 2021

Okay, understood. Thank you for looking at this!

Fixed the issue now.

Edit: The codeclimate issues seem to be unrelated.

@remkop
Copy link
Owner

remkop commented Sep 20, 2021

Apologies for the long wait. I will try to look at this soon!

@remkop remkop added this to the 4.6.2 milestone Oct 31, 2021
@remkop remkop merged commit 6218c0d into remkop:master Oct 31, 2021
remkop added a commit that referenced this pull request Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants