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

Passing variable value while running Lux Script #24

Open
gmathew18 opened this issue May 16, 2017 · 1 comment
Open

Passing variable value while running Lux Script #24

gmathew18 opened this issue May 16, 2017 · 1 comment

Comments

@gmathew18
Copy link

gmathew18 commented May 16, 2017

Hi,

Is there any example of providing variable value from cli when executing Lux Script ?
For eg. lux sample.lux variableValue

Thanks
Georgy

@JohanVikman
Copy link
Contributor

JohanVikman commented May 16, 2017

Hi Georgy,

Sure, passing environment variables is common, for example passing in shell variable MYVAR and using it in all Lux shells:

$ MYVAR=test lux mytest.lux

...and then in the lux file use:

[global luxvar=MYVAR]

Hope that helps!

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