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

rules: Add InputFromTextWithOptions for Go users #1278

Merged

Conversation

charlieegan3
Copy link
Member

This creates a helper function that creates an Input given a module as a string in a given version of Rego. This is being added for the rego-playground primarily.

@charlieegan3 charlieegan3 changed the title rules: Add InputFromTextWithOptions for go users rules: Add InputFromTextWithOptions for Go users Nov 27, 2024
This creates a helper function that creates an `Input` given a module as
a string in a given version of Rego. This is being added for the
rego-playground primarily.

Signed-off-by: Charlie Egan <[email protected]>
@charlieegan3
Copy link
Member Author

Thanks Stephan!

@charlieegan3 charlieegan3 merged commit 46d913b into StyraInc:main Nov 28, 2024
5 checks passed
@charlieegan3 charlieegan3 deleted the input-from-text-with-options branch November 28, 2024 11:33
@anderseknert
Copy link
Member

Nice, thanks! Later we might want to support both if there are multiple bundles in a workspace, and manifest files that declare the Rego version. But that’s for another day 🙂

@charlieegan3
Copy link
Member Author

Yeah for sure, this was mostly just added as a better version for the playground for starters.

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

Successfully merging this pull request may close these issues.

3 participants