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

Method CommandContext

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

CommandContext is part of the Interface interface.

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

Source from the content-addressed store, hash-verified

52
53// CommandContext is part of the Interface interface.
54func (*executor) CommandContext(ctx context.Context, cmd string, args ...string) Cmd {
55 return (*cmdWrapper)(maskErrDotCmd(osexec.CommandContext(ctx, cmd, args...)))
56}
57
58// Wraps exec.Cmd so we can capture errors.
59type cmdWrapper osexec.Cmd

Callers

nothing calls this directly

Calls 2

maskErrDotCmdFunction · 0.85
CommandContextMethod · 0.65

Tested by

no test coverage detected