MCPcopy Index your code
hub / github.com/docker/cli / withDefaultOpts

Function withDefaultOpts

cli/command/container/exec_test.go:21–28  ·  view source on GitHub ↗
(options ExecOptions)

Source from the content-addressed store, hash-verified

19)
20
21func withDefaultOpts(options ExecOptions) ExecOptions {
22 options.Env = opts.NewListOpts(opts.ValidateEnv)
23 options.EnvFile = opts.NewListOpts(nil)
24 if len(options.Command) == 0 {
25 options.Command = []string{"command"}
26 }
27 return options
28}
29
30func TestParseExec(t *testing.T) {
31 content := `ONE=1

Callers 3

TestParseExecFunction · 0.85
TestParseExecErrorsFunction · 0.85
TestRunExecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…