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

[Feature request]: Add parameter support to CLI tool #2983

Open
remcolam opened this issue Jul 15, 2024 · 2 comments
Open

[Feature request]: Add parameter support to CLI tool #2983

remcolam opened this issue Jul 15, 2024 · 2 comments
Labels
feature suggestion stale Stale issues or pull requests

Comments

@remcolam
Copy link
Contributor

Is your feature request related to a specific problem? Or an existing feature?

I need to provide additional configuration options into the assembly when using Swashbuckle.AspNetCore.Cli, on each execution.

Describe the solution you'd like

I would like to pass in some commandline parameters into the SwaggerHostFactory. I had previously already added support for this in a local fork of Swashbuckle.AspNetCore.Cli.

Is this something that would have value and should I try to create a pull request that adds this? (Currently I've worked around it by using environment settings and reading out those, but I think adding --parameters "var1=1;var2=two" is a better solution.

Additional context

No response

@martincostello
Copy link
Collaborator

Seems reasonable to me to allow you to pass values through to code like this:

return Program.CreateHostBuilder(new string[0]).Build();

We'd need to make sure that any changes didn't break the existing "duck-typing" that looks for types/methods with the right shape(s).

Copy link
Contributor

This issue is stale because it has been open for 60 days with no activity. It will be automatically closed in 14 days if no further updates are made.

@github-actions github-actions bot added the stale Stale issues or pull requests label Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature suggestion stale Stale issues or pull requests
Projects
None yet
Development

No branches or pull requests

2 participants