-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Switch to ArgumentParser #10
Comments
Oh, that would be nice. Also, while working on the #1 I've noticed a somewhat fragile copy-pasting in validation logic. It might affect the future work on arguments handling. I'll have a look on it, if you don't mind :) |
Please go ahead 👍 Before migrating to ArgumentParser I thought about building a common Badge command, which shares all validations, the others would be a subclass of it. I'm not sure if that is applicable if we switch. |
thanks :) Also a validation logic is a natural candidate for automated testing. Though they might be a burden in the short run, tests should pay off in the long run. Unfortunately, a small package overhaul is needed to support a test target. We need to extract Badgy's logic to a library test target, as tests fail to run against an executable target. On the other hand, the required changes are backward compatible with the previous Badgy versions. |
No worries, no need to convince me of the benefits, just didn't have time to get that done for such a small little project :) Glad to have you here thinking on how to make this tool better @elfenlaid! 🚀 Please don't feel the burden of carrying these ideas by yourself, I'd suggest we create clear issues for them so that we can easily collaborate and keep track. |
I've got a look at Back to the migration, it seems we may split the adoption into two or three phases
|
It's looking good! 👏 Have the same being done to a private tool (soon to be open source) I've created a base branch for this - rc-argument-parser - so that we can slowly merge your changes |
@elfenlaid I believe we can close this issue and open a more descriptive one to "Remove dependency on SwiftCLI.Task"? |
Oh, sure 👍 Drafted the problem here #25 |
ArgumentParser is Swift’s open source library to parse command-line arguments.
Consider the switch from SwiftCLI to ArgumentParser as an improvement, for something that has more contribution, stability and support from the community.
The text was updated successfully, but these errors were encountered: