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

Codegen: allow providing a path after --file #400

Merged
merged 2 commits into from
Nov 21, 2022
Merged

Codegen: allow providing a path after --file #400

merged 2 commits into from
Nov 21, 2022

Conversation

fantix
Copy link
Member

@fantix fantix commented Nov 18, 2022

This is not a breaking change; --file itself without a path works the same way as it was before.

Fixes #396

So now you can do:

  • --file for <project_dir>/generated_edgeql.py or <project_dir>/generated_async_edgeql.py
  • --file my/generated/file.py for my/generated/file.py

(As an implementation detail side effect, you can provide --file multiple times to have multiple identical copies in different places.)

This is not a breaking change; `--file` itself without a path works the
same way as it was before.
@fantix fantix requested a review from 1st1 November 18, 2022 17:50
@fantix fantix changed the title Allow providing a path after --file Codegen: allow providing a path after --file Nov 18, 2022
@fantix fantix merged commit 4f40a6e into master Nov 21, 2022
@fantix fantix deleted the file-mode-dest branch November 21, 2022 19:06
fantix added a commit that referenced this pull request Nov 23, 2022
This is not a breaking change; `--file` itself without a path works the
same way as it was before.

* Also use color in codegen output
fantix added a commit that referenced this pull request Nov 23, 2022
Changes
=======

* Output pretty error if possible (#399)
  (by @fantix in a2bec18 for #399)

* Codegen: allow providing a path after --file (#400)
  (by @fantix in 6bce57e for #400)

Fixes
=====

* Handle ErrorResponse in ping (#393)
  (by @fantix in 8b28947 for #393)

* Disallow None in elements of array argument
  (by @fantix in 26fb6d8)

Docs
====

* Remove references to unix-domain sockets
  (by @quinchs in 4b8bec6)
@fantix fantix mentioned this pull request Nov 23, 2022
@aljazerzen aljazerzen mentioned this pull request Feb 23, 2024
This was referenced Aug 2, 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.

Allow custom output directory for codegen
2 participants