MCPcopy
hub / github.com/wavetermdev/waveterm / WslCommand

Method WslCommand

pkg/wsl/wsl-win.go:37–45  ·  view source on GitHub ↗
(ctx context.Context, cmd string)

Source from the content-addressed store, hash-verified

35}
36
37func (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
47func (c *WslCmd) CombinedOutput() (out []byte, err error) {
48 return c.c.CombinedOutput()

Callers 5

GetDistroCmdFunction · 0.95
StartConnServerMethod · 0.45
hasBashInstalledFunction · 0.45
makeCancellableCommandFunction · 0.45
MakeWSLProcessControllerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected