Documentation
¶
Overview ¶
Package celindicators provides the CEL backend for projectdetect's CELExpr indicators. Importing it (typically as a blank import) installs the compiler so YAML-loaded custom project types can use `cel:` indicators:
import _ "github.com/richardwooding/projectdetect/celindicators"
The base projectdetect package has no CEL dependency; only this sub-package pulls in cel-go, so consumers that need only the built-ins and HasFile / HasGlob indicators don't link it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compile ¶
func Compile(expr string) (projectdetect.DirEvaluator, error)
Compile parses and type-checks expr against the directory CEL env and returns a projectdetect.DirEvaluator. It is the function installed via projectdetect.SetCELCompiler.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.