ConfigFile returns the ConfigFile
()
| 133 | |
| 134 | // ConfigFile returns the ConfigFile |
| 135 | func (cli *DockerCli) ConfigFile() *configfile.ConfigFile { |
| 136 | // TODO(thaJeztah): when would this happen? Is this only in tests (where cli.Initialize() is not called first?) |
| 137 | if cli.configFile == nil { |
| 138 | cli.configFile = config.LoadDefaultConfigFile(cli.err) |
| 139 | } |
| 140 | return cli.configFile |
| 141 | } |
| 142 | |
| 143 | // ServerInfo returns the server version details for the host this client is |
| 144 | // connected to |
no outgoing calls