README
¶
cel-eval
cel-eval
is a tool that you can use to evaluate CEL expressions locally. It works by allowing you to define an HTTP request and a CEL expression that is evaluated against the request.
How to use
- Build
cel-eval
by runninggo build
in this directory. - Define an HTTP request
$ cat > request <<EOF
POST /foo HTTP/1.1
Content-Length: 29
Content-Type: application/json
X-Header: tacocat
{"test": {"nested": "value"}}
EOF
- Define the CEL expression
$ cat > expression <<EOF
body.test.nested == "value"
EOF
- Run
cel-eval
$ ./cel-eval --expression ./expression --http-request ./request
true
Documentation
¶
There is no documentation for this package.
Click to show internal directories.
Click to hide internal directories.