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

Expose VARS as environment variables #1739

Open
yonas opened this issue Aug 7, 2024 · 0 comments
Open

Expose VARS as environment variables #1739

yonas opened this issue Aug 7, 2024 · 0 comments
Labels
state: needs triage Waiting to be triaged by a maintainer.

Comments

@yonas
Copy link

yonas commented Aug 7, 2024

New boolean variable that exposes variables as environment variables with the same name.

If placed under an individual variable definition, it only affects that variable. If placed directly under vars:, it affects all variables.

I'd like to run a Jinja2 template via minijinja-cli --env ....

The workaround is to simply use env in place of vars, potentially exposing more variables than intended.

Second workaround is to explicitly reference variables when defining the environment variables.

@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: needs triage Waiting to be triaged by a maintainer.
Projects
None yet
Development

No branches or pull requests

2 participants