Skip to content

feat: Add env var placeholders support#47

Merged
Quozul merged 4 commits intoQuozul:masterfrom
saladware:feature/envconf
Jan 28, 2026
Merged

feat: Add env var placeholders support#47
Quozul merged 4 commits intoQuozul:masterfrom
saladware:feature/envconf

Conversation

@saladware
Copy link
Contributor

This PR adds support for env vars in PicoLimbo config file.

You can now use ${ENV_VAR} inside the config and it will be expanded
before TOML parsing. This is useful for running PicoLimbo in Docker
or other environments where config is driven by env vars.

What’s included:

  • ${ENV_VAR} is replaced with the value from the environment
  • ${ENV_VAR} can be used to escape and keep it literal
  • Errors for missing or invalid placeholders
  • No changes for existing configs

Note: I’m still learning Rust, so feel free to point out anything that
could be written in a more idiomatic way 🙂

@saladware saladware requested a review from Quozul January 7, 2026 16:04
@Quozul Quozul merged commit 0ba9e27 into Quozul:master Jan 28, 2026
4 checks passed
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