(ctx context.Context, cmd string)
| 35 | } |
| 36 | |
| 37 | func (d *Distro) WslCommand(ctx context.Context, cmd string) *WslCmd { |
| 38 | if ctx == nil { |
| 39 | panic("nil Context") |
| 40 | } |
| 41 | innerCmd := d.Command(ctx, cmd) |
| 42 | var wg sync.WaitGroup |
| 43 | var lock *sync.Mutex |
| 44 | return &WslCmd{innerCmd, &wg, new(sync.Once), lock, nil} |
| 45 | } |
| 46 | |
| 47 | func (c *WslCmd) CombinedOutput() (out []byte, err error) { |
| 48 | return c.c.CombinedOutput() |
no outgoing calls
no test coverage detected