Skip to content

Changes the env() function so it returns justfile environment variables #2718

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Hwatwasthat
Copy link
Contributor

Currently, if a variable is exported in a Justfile, env (also env_var and env_var_or_default), will not return it. This commit adds a check of the contexts scope for variables there, and it present it returns those values.

Additionally, this commit merges the functionality of env, env_var and env_var_or_default under env, with the others calling env, to reduce the duplication that was present.

Fixes #2713.

Currently, if a variable is exported in a Justfile, `env` (also `env_var` and `env_var_or_default`), will not return it. This commit adds a check of the contexts scope for variables there.

Additionally, this commit merges the functionality of `env`, `env_var` and `env_var_or_default` under `env`, with the others calling env, to reduce the duplication that was present.
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.

env() does not see exported variables in the same Justfile
1 participant