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

Function setupRunFlags

cli/command/container/opts_test.go:69–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67}
68
69func setupRunFlags() (*pflag.FlagSet, *containerOptions) {
70 flags := pflag.NewFlagSet("run", pflag.ContinueOnError)
71 flags.SetOutput(io.Discard)
72 flags.Usage = nil
73 copts := addFlags(flags)
74 return flags, copts
75}
76
77func mustParse(t *testing.T, args string) (*container.Config, *container.HostConfig, *networktypes.NetworkingConfig) {
78 t.Helper()

Callers 6

parseRunFunction · 0.85
TestParseWithMemorySwapFunction · 0.85
TestParseModesFunction · 0.85
TestRunFlagsParseShmSizeFunction · 0.85

Calls 1

addFlagsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…