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

Example of how to use -var argument #122

Closed
bencodeorg opened this issue Mar 23, 2018 · 2 comments
Closed

Example of how to use -var argument #122

bencodeorg opened this issue Mar 23, 2018 · 2 comments

Comments

@bencodeorg
Copy link

bencodeorg commented Mar 23, 2018

Hello sql-runner! This may be a bit of a basic question, but I can find no documentation of the appropriate syntax to use when referncing an argument passed in via -var (I don't really know anything about Go, this question is probably not relevant for those who do).

I see some discussion of supporting multiple arguments (#120), but can't seem to find an example of how to simply pass in a single value? Specifically, I'd like to be able to pass a password and reference it in my playbook.

Also, thank you for this tool! We're hoping to using it at Code.org to manage some of our analytics processes.

@bencodeorg bencodeorg changed the title Example of how to use -var Example of how to use -var argument Mar 23, 2018
@BenFradet
Copy link

You can specify it as -var key=value, it should be specified when you run ./sql-runner -help: https://github.com/snowplow/sql-runner/wiki/Guide-for-devops

As of the latest release it's only possible to pass one. However, if you're building from develop you can pass multiple variables.

Next time, please, ask for support on our forum so that everyone can benefit from your question.

Also, thank you for this tool! We're hoping to using it at Code.org to manage some of our analytics processes.

Thanks 👍

@bencodeorg
Copy link
Author

Thanks Ben! Apologies for not using the forum, moving further discussion here:

https://discourse.snowplowanalytics.com/t/accessing-command-line-arguments-in-playbook/1901

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