Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Add env variables support in .toml config #356

Merged
merged 1 commit into from
Jan 24, 2023
Merged

Conversation

vvkh
Copy link
Contributor

@vvkh vvkh commented Dec 24, 2022

Add env variables support in .toml config (#278).

Obvious syntax options were:

  • {ENV_VAR} like Python f-strings or .format().
  • $ENV_VAR like in shell scripts.
  • ${ENV_VAR} is also widely used. For example, in docker-compose.

I suggest using ${ENV_VAR}, mainly because:

  • The f-strings-like approach is something I find very Python-specific.
  • In contrast to $ENV_VAR, we can probably get away without escaping special characters with this approach.

However, I don't mind switching format if, for some reason, ${ENV_VAR} doesn't work for us.

@vvkh vvkh requested a review from erezsh December 24, 2022 19:08
@vvkh vvkh requested review from nolar and leoebfolsom January 9, 2023 15:32
@vvkh vvkh requested a review from pik94 January 18, 2023 08:09
Copy link
Contributor

@leoebfolsom leoebfolsom left a comment

Choose a reason for hiding this comment

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

My review is not technical, but I fully support this change and the approach described in the PR description. 🙌 🥳

@erezsh erezsh merged commit 2d624d6 into master Jan 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants