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

Function NewNode

taskrc/node.go:11–24  ·  view source on GitHub ↗
(
	entrypoint string,
	dir string,
	possibleFileNames []string,
)

Source from the content-addressed store, hash-verified

9}
10
11func NewNode(
12 entrypoint string,
13 dir string,
14 possibleFileNames []string,
15) (*Node, error) {
16 dir = fsext.DefaultDir(entrypoint, dir)
17 resolvedEntrypoint, err := fsext.SearchPath(dir, possibleFileNames)
18 if err != nil {
19 return nil, err
20 }
21 return &Node{
22 entrypoint: resolvedEntrypoint,
23 }, nil
24}

Callers 1

GetConfigFunction · 0.70

Calls 2

DefaultDirFunction · 0.92
SearchPathFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…