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

Method DeepCopy

taskfile/ast/dep.go:17–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15}
16
17func (d *Dep) DeepCopy() *Dep {
18 if d == nil {
19 return nil
20 }
21 return &Dep{
22 Task: d.Task,
23 For: d.For.DeepCopy(),
24 Vars: d.Vars.DeepCopy(),
25 Silent: d.Silent,
26 }
27}
28
29func (d *Dep) UnmarshalYAML(node *yaml.Node) error {
30 switch node.Kind {

Callers

nothing calls this directly

Calls 1

DeepCopyMethod · 0.65

Tested by

no test coverage detected