Allow specifying project_dir
from within a --config file
#808
Closed
Julian
started this conversation in
Feature request
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm only a day or two into using the project, which seems quite nice, so apologies if I'm missing this:
Is your feature request related to a problem? Please describe.
It seems there isn't a way to specify where the root of a project lives, and
openapi-python-client
assumes thatcwd
is the parent of where it lives. That makes it a bit awkward to executeopenapi-python-client update
(it means one basically needs to do so from a directory up from where I'd expect) once you already have a git repository with a generated client that you're maintaining.Describe the solution you'd like
One or both of:
project_dir
is relative to--config
when provided (i.e. that someone has placed the--config
inside theirproject_dir
, so start there)project_dir
option to config files themselves which specifies, relative to the file itself, where the project lives (and when not present, default tocwd
I suppose as is assumed now).Describe alternatives you've considered
Only doing one or the other of the above.
Thanks again!
Beta Was this translation helpful? Give feedback.
All reactions