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

Config from code #749

Merged
merged 4 commits into from
Jul 29, 2022
Merged

Config from code #749

merged 4 commits into from
Jul 29, 2022

Conversation

fclairamb
Copy link
Owner

This only finishes #714 from @thallgren with a tiny lint fix:

It's sometimes desirable to create a server that is configured by logic that creates the Content. Before this commit, such content needed to be written to a temporary file and loaded into memory to get a complete Config.

This commit adds a FromContent method, allowing the Config to be created directly from Content.

thallgren and others added 4 commits June 28, 2022 18:20
It's sometimes desirable to create a server that is configured by logic
that creates the `Content`. Prior to this commit, such content needed
to be written to a temporary file and then loaded into memory again in
order to get a complete `Config`.

This commit adds a `FromContent` method, allowing the `Config` to be
created directly from a `Content`.
@fclairamb fclairamb enabled auto-merge (squash) July 29, 2022 23:40
@fclairamb fclairamb changed the title Config from code (#714) Config from code Jul 29, 2022
@fclairamb fclairamb merged commit e2524a2 into main Jul 29, 2022
@fclairamb fclairamb deleted the config-from-code branch July 29, 2022 23:42
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