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