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

Method Initialize

cli/cobra.go:164–167  ·  view source on GitHub ↗

Initialize finalises global option parsing and initializes the docker client.

(ops ...command.CLIOption)

Source from the content-addressed store, hash-verified

162
163// Initialize finalises global option parsing and initializes the docker client.
164func (tcmd *TopLevelCommand) Initialize(ops ...command.CLIOption) error {
165 tcmd.opts.SetDefaultOptions(tcmd.flags)
166 return tcmd.dockerCli.Initialize(tcmd.opts, ops...)
167}
168
169var helpCommand = &cobra.Command{
170 Use: "help [command]",

Callers 2

HandleGlobalFlagsMethod · 0.95
RunPluginFunction · 0.45

Calls 1

SetDefaultOptionsMethod · 0.80

Tested by

no test coverage detected