MCPcopy Index your code
hub / github.com/docker/docker-agent / ExecWithContextAndEnv

Function ExecWithContextAndEnv

e2e/binary/shellout.go:23–25  ·  view source on GitHub ↗
(ctx context.Context, env []string, cmd string, args ...string)

Source from the content-addressed store, hash-verified

21}
22
23func ExecWithContextAndEnv(ctx context.Context, env []string, cmd string, args ...string) (CmdResult, error) {
24 return ExecWithContextInDir(ctx, "", cmd, args, env)
25}
26
27func ExecWithContextInDir(ctx context.Context, dir, cmd string, args, env []string) (CmdResult, error) {
28 command := exec.CommandContext(ctx, cmd, args...)

Callers 1

TestAutoCompleteFunction · 0.85

Calls 1

ExecWithContextInDirFunction · 0.85

Tested by 1

TestAutoCompleteFunction · 0.68