-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for print built-in (#180)
While playing around with the Gator CLI today I noticed that I couldn't use the new print built-in from OPA in that context. This function is really useful to quickly be able to debug values of rules and variables, and would be a nice addition to the Gator CLI (and possibly to the Gatekeeper server too, but others can decide that). This PR adds options to the local driver for enabling print and for providing a printHook that decides where the output of print calls should go. Will submit another PR for support in Gator if/when this is merged. Signed-off-by: Anders Eknert <anders@eknert.com>
- Loading branch information
1 parent
527ad40
commit 8c2d6e2
Showing
3 changed files
with
107 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters