MCPcopy
hub / github.com/go-task/task / ParseWithConfig

Function ParseWithConfig

experiments/experiments.go:39–48  ·  view source on GitHub ↗
(dir string, config *ast.TaskRC)

Source from the content-addressed store, hash-verified

37}
38
39func ParseWithConfig(dir string, config *ast.TaskRC) {
40 // Read any .env files
41 readDotEnv(dir)
42 // Initialize the experiments
43 GentleForce = New("GENTLE_FORCE", config, 1)
44 RemoteTaskfiles = New("REMOTE_TASKFILES", config, 1)
45 EnvPrecedence = New("ENV_PRECEDENCE", config, 1)
46 AnyVariables = New("ANY_VARIABLES", config)
47 MapVariables = New("MAP_VARIABLES", config)
48}
49
50// Validate checks if any experiments have been enabled while being inactive.
51// If one is found, the function returns an error.

Callers 2

initFunction · 0.92
ParseFunction · 0.85

Calls 2

readDotEnvFunction · 0.85
NewFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…