celindicators

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL