MCPcopy Create free account
hub / github.com/cel-expr/cel-go / AddVariables

Method AddVariables

common/env/env.go:132–135  ·  view source on GitHub ↗

AddVariables adds one or more variables to the config.

(vars ...*Variable)

Source from the content-addressed store, hash-verified

130
131// AddVariables adds one or more variables to the config.
132func (c *Config) AddVariables(vars ...*Variable) *Config {
133 c.Variables = append(c.Variables, vars...)
134 return c
135}
136
137// SetContextVariable configures the ContextVariable for this configuration.
138func (c *Config) SetContextVariable(ctx *ContextVariable) *Config {

Callers 9

envProtoToConfigFunction · 0.95
AddVariableDeclsMethod · 0.95
TestEnvToConfigFunction · 0.45
TestEnvFromConfigFunction · 0.45
TestEnvFromConfigErrorsFunction · 0.45
TestConfigToYAMLFunction · 0.45
TestConfigFunction · 0.45
TestConfigValidateErrorsFunction · 0.45

Calls

no outgoing calls

Tested by 7

TestEnvToConfigFunction · 0.36
TestEnvFromConfigFunction · 0.36
TestEnvFromConfigErrorsFunction · 0.36
TestConfigToYAMLFunction · 0.36
TestConfigFunction · 0.36
TestConfigValidateErrorsFunction · 0.36