-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Replace '--generator-name' with multiple switches to select a generator #137
Comments
I think it would also be nice to offer suggestions. For example, if you were to run the following on current master:
there's only As an example, if we add javalin and spring support, we could do something like:
|
Each *Codegen class instead of having a single ( This is breaking change (changing CodegenConfig interface), but seems doable to me. We can keep the -g option to uniquely select a generator, and also add |
There is one thing that makes it a little more complex: @rienafairefr : Yes I agree with you, it can be done even by keeping the generators the way they are. In later refactorings we can get remove the abstract codegen ( |
On the long term we might want to offer an other way to select the targeted generator.
Probably with multiple switches (to be defined more precisely):
Examples:
A first step in this direction was made with #39, where we have renamed
-l
(--lang
) into-g
(--generator-name
).With the next version (
4.0.0
?) we might want to continue to work on this by providing an other way to lookup a generator with multiple switches.This is open for feedback.
cc: @jimschubert
The text was updated successfully, but these errors were encountered: