Skip to content

Allow specifying project_dir from within a --config file #684

Closed

Description

@Julian

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 that cwd is the parent of where it lives. That makes it a bit awkward to execute openapi-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:

  • assume that the project_dir is relative to --config when provided (i.e. that someone has placed the --config inside their project_dir, so start there)
  • add a project_dir option to config files themselves which specifies, relative to the file itself, where the project lives (and when not present, default to cwd I suppose as is assumed now).

Describe alternatives you've considered
Only doing one or the other of the above.

Thanks again!

Activity

  1. added
    ✨ enhancement
    on Oct 11, 2022
  2. locked and limited conversation to collaborators on Aug 13, 2023
  3. converted this issue into a discussion #808 on Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✨ enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions