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

Refactor the tiny-remapper CLI #6

Merged
merged 44 commits into from
Jun 18, 2021

Conversation

egelja
Copy link
Contributor

@egelja egelja commented Jun 17, 2021

Overview

This switches tiny-remapper over to PicoCLI, a lightweight CLI framework. This makes it easier to add new parameters/options, generate help/version info/docs, and give descriptive error messages. It also closes #4, because of the new help command.

Screenshots

Help command

image

Version command

image

Error messages:

image
image


Manpage

image

src/main/java/net/fabricmc/tinyremapper/Main.java Outdated Show resolved Hide resolved
src/main/java/net/fabricmc/tinyremapper/Main.java Outdated Show resolved Hide resolved
src/main/java/net/fabricmc/tinyremapper/Main.java Outdated Show resolved Hide resolved
src/main/java/net/fabricmc/tinyremapper/Main.java Outdated Show resolved Hide resolved
@egelja egelja requested a review from i509VCB June 17, 2021 21:44
build.gradle Outdated Show resolved Hide resolved
build.gradle Outdated Show resolved Hide resolved
build.gradle Show resolved Hide resolved
src/main/java/net/fabricmc/tinyremapper/Main.java Outdated Show resolved Hide resolved
src/main/java/net/fabricmc/tinyremapper/Main.java Outdated Show resolved Hide resolved
build.gradle Show resolved Hide resolved
build.gradle Show resolved Hide resolved
@egelja egelja requested a review from i509VCB June 18, 2021 21:46
@egelja egelja force-pushed the MrAwesomeRocks/refactor-cli branch from 85a6eae to adafc6d Compare June 18, 2021 21:48
@i509VCB
Copy link
Contributor

i509VCB commented Jun 18, 2021

@Earthcomputer let's have you take a look at this since you seem to be the asm guy here

@egelja
Copy link
Contributor Author

egelja commented Jun 18, 2021

I didn't change anything there except a commit message.

Copy link

@Earthcomputer Earthcomputer left a comment

Choose a reason for hiding this comment

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

A couple of unnecessary changes, other than that it looks fine presuming we're happy using this library. I'm not familiar with this library so I'm presuming the annotations are implemented correctly. Just a heads up, JOptSimple is the one that Minecraft uses so may be familiar to more people here.

gradlew.bat Show resolved Hide resolved
build.gradle Show resolved Hide resolved
@egelja egelja force-pushed the MrAwesomeRocks/refactor-cli branch from 2c54a5e to eb30c85 Compare June 18, 2021 22:48
@i509VCB i509VCB merged commit 2392f6a into QuiltMC:master Jun 18, 2021
@egelja egelja deleted the MrAwesomeRocks/refactor-cli branch June 18, 2021 23:08
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.

Better usage in CLI mode
3 participants