Skip to content

Conversation

@GerkinDev
Copy link

Add support for nested env var interpolation

if m.group("err") is not None:
raise RuntimeError(m.group("err"))
return m.group("default") or ""
raise RuntimeError(rec_subs(m.group("err"), subs_dict))
Copy link
Author

Choose a reason for hiding this comment

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

Not sure about this one.

@GerkinDev GerkinDev force-pushed the feat/nested-env-defaults branch from dcae156 to 97b7556 Compare January 27, 2026 13:42
@GerkinDev
Copy link
Author

While testing, I saw that some case were incorrect (for example: ${foo:-default} is ${bar-none}). It seems that a better regex is needed

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.

1 participant