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

Update REPL examples to show usage of query inputs #172

Closed
tsandall opened this issue Nov 25, 2016 · 0 comments
Closed

Update REPL examples to show usage of query inputs #172

tsandall opened this issue Nov 25, 2016 · 0 comments
Labels

Comments

@tsandall
Copy link
Member

The REPL now allows users to specify query inputs by defining a documents under the repl.globals namespace. E.g.,

OPA 0.2.2-dev (commit e83a083, built at 2016-11-25T01:40:36Z)

Run 'help' to see a list of commands.

> package repl.globals
>
> request = {"method": "GET", "path": "/foo"}
>
>
> package abc
> import request
> request
+--------------------------------+
|            request             |
+--------------------------------+
| {"method":"GET","path":"/foo"} |
+--------------------------------+

It would be good to include this in the REPL example so people know the behaviour exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant