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

Function ExecWithContext

e2e/binary/shellout.go:19–21  ·  view source on GitHub ↗
(ctx context.Context, cmd string, args ...string)

Source from the content-addressed store, hash-verified

17}
18
19func ExecWithContext(ctx context.Context, cmd string, args ...string) (CmdResult, error) {
20 return ExecWithContextInDir(ctx, "", cmd, args, nil)
21}
22
23func ExecWithContextAndEnv(ctx context.Context, env []string, cmd string, args ...string) (CmdResult, error) {
24 return ExecWithContextInDir(ctx, "", cmd, args, env)

Callers 3

TestHelpInAllExecModeFunction · 0.85
TestExecMissingKeysFunction · 0.85
TestAutoCompleteFunction · 0.85

Calls 1

ExecWithContextInDirFunction · 0.85

Tested by 3

TestHelpInAllExecModeFunction · 0.68
TestExecMissingKeysFunction · 0.68
TestAutoCompleteFunction · 0.68