Skip to content

feat: CLI option to define output directory - #619

Closed
JasperS2307 wants to merge 1 commit into
openapi-generators:mainfrom
JasperS2307:cli-argument-output-dir
Closed

feat: CLI option to define output directory#619
JasperS2307 wants to merge 1 commit into
openapi-generators:mainfrom
JasperS2307:cli-argument-output-dir

Conversation

@JasperS2307

@JasperS2307 JasperS2307 commented May 26, 2022

Copy link
Copy Markdown

Not sure if I'm the only one, but I like to put (all) the generated clients together in a folder for the same project. Maybe it needs some clarification that you change the folder where the generated client is saved, not the name of the generated folder, but not sure if that is needed. If people think this is a bad idea, let me know so maybe I change my mind ;-)

  • Tests
  • Codestyle
  • ..?

@JasperS2307
JasperS2307 marked this pull request as draft May 26, 2022 14:46
@dbanty

dbanty commented Jun 3, 2022

Copy link
Copy Markdown
Collaborator

Just for your perusal, this may be related to https://github.com/openapi-generators/openapi-python-client/discussions/237 .

@danielgafni

Copy link
Copy Markdown

hey guys, I would like to have this too! do you need any help with this PR? this feature looks pretty straightforward

@dbanty

dbanty commented Sep 18, 2022

Copy link
Copy Markdown
Collaborator

To be clear, the intended behavior is the same as if the user had switched into the passed output directory themselves (e.g., with cd) before running the command?

@aletor123

aletor123 commented Mar 17, 2023

Copy link
Copy Markdown

I want this option too because it's more comfortable to use output option instead switching of folder. Also it would be better to not create another folder in output folder during build

@n1ckaz

n1ckaz commented Mar 17, 2023

Copy link
Copy Markdown

It would be nice to add the ability to generate the SDK directly into an existing folder

Example:

I have `sdk_folder`
Then run
$ openapi-python-client generate --path path/to/spec --output sdk_folder

Then I got `sdk_folder` with generated sdk instead of `sdk_folder/project_name`

It may also make sense to add the --overwrite-if-exists flag for this

@dbanty

dbanty commented Jun 8, 2024

Copy link
Copy Markdown
Collaborator

This will be replaced by #1052

@dbanty dbanty closed this Jun 8, 2024
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

Successfully merging this pull request may close these issues.

5 participants