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

Function NewBaseNode

taskfile/node_base.go:19–31  ·  view source on GitHub ↗
(dir string, opts ...NodeOption)

Source from the content-addressed store, hash-verified

17)
18
19func NewBaseNode(dir string, opts ...NodeOption) *baseNode {
20 node := &baseNode{
21 parent: nil,
22 dir: dir,
23 }
24
25 // Apply options
26 for _, opt := range opts {
27 opt(node)
28 }
29
30 return node
31}
32
33func WithParent(parent Node) NodeOption {
34 return func(node *baseNode) {

Callers 4

NewFileNodeFunction · 0.85
NewGitNodeFunction · 0.85
NewHTTPNodeFunction · 0.85
NewStdinNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…