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

Providing custom arguments #47

Open
ktalebian opened this issue Nov 7, 2023 · 2 comments
Open

Providing custom arguments #47

ktalebian opened this issue Nov 7, 2023 · 2 comments

Comments

@ktalebian
Copy link

Is it possible to provide custom arguments to the openapi-generator-plus command? There seems to be only https://github.com/karlvr/openapi-generator-plus#command-line-options available and I don't see a way to configure

export default async function generateCommand(argv: string[]): Promise<void> {

I can make a PR if that works

@karlvr
Copy link
Owner

karlvr commented Nov 29, 2023

@ktalebian I'm sorry I'm not quite sure what you mean. Do you want to add support for command-line arguments that a generator template might then use? Currently generator templates are only using the configuration from the configuration file, but it might be interesting to add support for them to receive command-line arguments... is that what you're suggesting?

@ktalebian
Copy link
Author

Ya exactly. I want to provide additional args like openapi-generator-plus --server or openapi-generator-plus --client for example.

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

No branches or pull requests

2 participants