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

Support parameters for running script #14

Open
asubb opened this issue Dec 16, 2019 · 0 comments
Open

Support parameters for running script #14

asubb opened this issue Dec 16, 2019 · 0 comments

Comments

@asubb
Copy link
Member

asubb commented Dec 16, 2019

It would be nice if CLI tool would support parameters that can be passed into a script

The call may look something like this:

wavebeans-cli --execute "<script content here>" --parameter a=10 --parameter b="string"

The parameters are stored into a script context and provide access via functions

So the script would look like this

val freq = intParam("a")
val file = stringParam("b")

freq.sine().trim(1000).toCsv("file://$file")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant