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

Method CompiledTask

variables.go:34–36  ·  view source on GitHub ↗

CompiledTask returns a copy of a task, but replacing variables in almost all properties using the Go template package.

(call *Call)

Source from the content-addressed store, hash-verified

32// CompiledTask returns a copy of a task, but replacing variables in almost all
33// properties using the Go template package.
34func (e *Executor) CompiledTask(call *Call) (*ast.Task, error) {
35 return e.compiledTask(call, true)
36}
37
38// FastCompiledTask is like CompiledTask, but it skippes dynamic variables.
39func (e *Executor) FastCompiledTask(call *Call) (*ast.Task, error) {

Callers 4

StatusMethod · 0.95
TestIncludesHttpFunction · 0.95
traverseMethod · 0.95
RunTaskMethod · 0.95

Calls 1

compiledTaskMethod · 0.95

Tested by 1

TestIncludesHttpFunction · 0.76