(args ...string)
| 69 | } |
| 70 | |
| 71 | func (b *Base) Cmd(args ...string) *Cmd { |
| 72 | icmdCmd := icmd.Command(b.Binary, append(b.Args, args...)...) |
| 73 | icmdCmd.Env = b.Env |
| 74 | icmdCmd.Dir = b.Dir |
| 75 | cmd := &Cmd{ |
| 76 | Cmd: icmdCmd, |
| 77 | Base: b, |
| 78 | } |
| 79 | return cmd |
| 80 | } |
| 81 | |
| 82 | // ComposeCmd executes `nerdctl -n nerdctl-test compose` or `docker-compose` |
| 83 | func (b *Base) ComposeCmd(args ...string) *Cmd { |