-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Generate a Kotlin wrapper with Kotlin Poet #75
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great direction, I like it :)
To make a consistent change, let's make the SetupNodeV2 wrapper fully functional.
return FunSpec.builder("toYamlArguments") | ||
.returns(LinkedHashMap::class.parameterizedBy(String::class, String::class)) | ||
.addModifiers(KModifier.OVERRIDE) | ||
.addCode("return TODO(%S)", "You need to implement toYamlArguments()") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a must-have to have MVP :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
@krzema12 I added a command to generate the wrapper from the command-line
I'm now done feature-wise |
Please don't bother about the merge conflicts, I'm introducing these changes in smaller chunks and with slightly different approach, using you PR as inspiration/reference implementation. I'll mark you as author wherever necessary. Thanks for your effort! 🎉 |
I am able to generate the file
SetupnodeV2.kt
with KotlinPoet