Skip to content

Conversation

fantix
Copy link
Member

@fantix fantix commented Jul 29, 2025

Parse and apply generate config from environment variables, see also geldata/gel-cli#1703.

This PR adds the infrastructure to parse generate config envs and report errors, as well as 2 configs for the models generator:

  • no_cache: boolean, the same as --no-cache
  • output: string, the same as --output

Parse error looks like:

image

@fantix
Copy link
Member Author

fantix commented Jul 31, 2025

(I should probably reuse Python stdlib traceback formatting)

Copy link
Member

@1st1 1st1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Downgrading my review to "some changes are needed"

@1st1
Copy link
Member

1st1 commented Jul 31, 2025

(I should probably reuse Python stdlib traceback formatting)

I think what you did looks nice!

@fantix fantix merged commit 45f7afd into master Aug 1, 2025
22 of 42 checks passed
@fantix fantix deleted the generate-env-config branch August 1, 2025 18:53
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.

2 participants