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

Environment variables #300

Closed
jaxxstorm opened this issue Nov 20, 2019 · 2 comments
Closed

Environment variables #300

jaxxstorm opened this issue Nov 20, 2019 · 2 comments

Comments

@jaxxstorm
Copy link

Is there a way to read environment variables with jk?

@squaremo
Copy link
Member

Not at present. You would need to supply them via shell expansion and parameters, e.g.,

jk run -p foobar="$FOOBAR" -c 'log(param.String("foobar"))'

This is a deliberate omission; the rationale being that everything from the "outside world" should be passed explicitly to a script, to rule out a source of unpredictable behaviour.

@jaxxstorm
Copy link
Author

thanks!

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

No branches or pull requests

2 participants