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

Function NewRootNode

taskfile/node.go:33–46  ·  view source on GitHub ↗
(
	entrypoint string,
	dir string,
	insecure bool,
	timeout time.Duration,
	opts ...NodeOption,
)

Source from the content-addressed store, hash-verified

31}
32
33func NewRootNode(
34 entrypoint string,
35 dir string,
36 insecure bool,
37 timeout time.Duration,
38 opts ...NodeOption,
39) (Node, error) {
40 dir = fsext.DefaultDir(entrypoint, dir)
41 // If the entrypoint is "-", we read from stdin
42 if entrypoint == "-" {
43 return NewStdinNode(dir)
44 }
45 return NewNode(entrypoint, dir, insecure, opts...)
46}
47
48func NewNode(
49 entrypoint string,

Callers 1

getRootNodeMethod · 0.92

Calls 3

DefaultDirFunction · 0.92
NewStdinNodeFunction · 0.85
NewNodeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…