MCPcopy Index your code
hub / github.com/coder/envbox / CommandContext

Method CommandContext

xunix/exec.go:43–43  ·  view source on GitHub ↗

CommandContext returns a Cmd instance which can be used to run a single command. The provided context is used to kill the process if the context becomes done before the command completes on its own. For example, a timeout can be set in the context.

(ctx context.Context, cmd string, args ...string)

Source from the content-addressed store, hash-verified

41 // before the command completes on its own. For example, a timeout can be set in
42 // the context.
43 CommandContext(ctx context.Context, cmd string, args ...string) Cmd
44}
45
46type Cmd interface {

Callers 7

dockerRuntimesFunction · 0.65
startEnvboxCmdFunction · 0.65
execContainerCmdFunction · 0.65
dockerCmdFunction · 0.65
NewFunction · 0.65
RestartMethod · 0.65
CommandContextMethod · 0.65

Implementers 2

executorxunix/exec.go
FakeExecxunix/xunixfake/exec.go

Calls

no outgoing calls

Tested by 3

dockerRuntimesFunction · 0.52
startEnvboxCmdFunction · 0.52
execContainerCmdFunction · 0.52