()
| 24 | } |
| 25 | |
| 26 | func (c *Cmd) DeepCopy() *Cmd { |
| 27 | if c == nil { |
| 28 | return nil |
| 29 | } |
| 30 | return &Cmd{ |
| 31 | Cmd: c.Cmd, |
| 32 | LogCmd: c.LogCmd, |
| 33 | Task: c.Task, |
| 34 | For: c.For.DeepCopy(), |
| 35 | If: c.If, |
| 36 | Silent: c.Silent, |
| 37 | Set: deepcopy.Slice(c.Set), |
| 38 | Shopt: deepcopy.Slice(c.Shopt), |
| 39 | Vars: c.Vars.DeepCopy(), |
| 40 | IgnoreError: c.IgnoreError, |
| 41 | Defer: c.Defer, |
| 42 | Platforms: deepcopy.Slice(c.Platforms), |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | func (c *Cmd) UnmarshalYAML(node *yaml.Node) error { |
| 47 | switch node.Kind { |