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

Modernize cli #1067

Merged
merged 1 commit into from
Nov 20, 2021
Merged

Modernize cli #1067

merged 1 commit into from
Nov 20, 2021

Conversation

abelsromero
Copy link
Member

@abelsromero abelsromero commented Nov 18, 2021

Thank you for opening a pull request and contributing to AsciidoctorJ!

Please take a bit of time giving some details about your pull request:

Kind of change

  • Bug fix
  • New non-breaking feature
  • New breaking feature
  • Documentation update
  • Build improvement
  • Chore

Description

What is the goal of this pull request?

  • Bump jCommander version to latest v1.81
  • Modernize CLI related classes:
    • Fix deprecated calls
    • User Java8+ structs when (opinionably) applicable
    • Applied default IntelliJ Formatting

How does it achieve that?

Are there any alternative ways to implement this?

Are there any implications of this pull request? Anything a user must know?
Test pass and I have not gone far in code changes just in case.

Issue

If this PR fixes an open issue, please add a line of the form:

Fixes #Issue

Release notes

Please add a corresponding entry to the file CHANGELOG.adoc

@abelsromero abelsromero force-pushed the modernize-cli branch 3 times, most recently from 9e3f8ee to 0aae689 Compare November 18, 2021 00:20
+ "' missing or cannot be read");
});

return inputFiles.stream()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I refactored this as-is, but the output is actually never used, maybe we should remove and just cal convert "for each" input?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that would make sense. The method is also not part of any public API, so we can just remove the return value.

@robertpanzer
Copy link
Member

This looks good to me.
If you like you can change that one thing you comment on, otherwise I would also merge it in its current state.

@abelsromero
Copy link
Member Author

If you like you can change that one thing you comment on, otherwise I would also merge it in its current state.

Yes, thanks. I can find some time today.

@abelsromero abelsromero force-pushed the modernize-cli branch 2 times, most recently from 964d375 to 7e0d8de Compare November 20, 2021 16:44
* Removed unused imports
* Applied Java8+ constructs
* Formatting: unified code to use spaces
* Remove AsciidoctorJ deprecated APIs when possible
* Use AsciidoctorCliOptions.TIMINGS_OPTION_NAME constant in AsciidoctorInvoker
@abelsromero
Copy link
Member Author

Done 🥳

@robertpanzer robertpanzer merged commit 0335a79 into asciidoctor:main Nov 20, 2021
@robertpanzer
Copy link
Member

Awesome, thank you! 🙏🎉

@abelsromero abelsromero deleted the modernize-cli branch November 26, 2023 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants