Skip to content

Latest commit

 

History

History

celcli

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

CEL CLI

Testing CEL code easily

How to build

go mod tidy
go build .

How to use

$ echo "{\"field\":0}" | go run main.go "object.field < 1"
true

or you can directly use the test-resource

$ cat ../../test-resources/deployment.yaml | ./celcli --input yaml "object.kind == \"Deployment\""
true