mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 14:20:35 +01:00
Question: is this possible to use environment variable with a filling template ? #232
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alexisvisco on GitHub (Oct 28, 2024).
Hey !
Thanks you for you awesome configuration library, it is pleasant to work with.
I wonder if when filling a template it is possible to say for instance
password = env("PG_PASSWORD")?Let me explain why : if you want to use this config in production you mght want to use env variables for sensible informations.
@alexisvisco commented on GitHub (Oct 28, 2024):
https://pkl-lang.org/main/current/language-reference/index.html#resources
It is possible:
path = read("env:PATH")