DockerCLI/cli/command
Anca Iordache 22a5dad847 app-214 Load Client info in getter function
Signed-off-by: Anca Iordache <anca.iordache@docker.com>

Possible approach for client info

- split ClientInfo() into ClientInfo() and loadClientInfo()
- split ConfigFile() into ConfigFile() and loadConfigFile()
- ConfigFile() and ClientInfo() call their corresponding loadXX function
  if it has not yet been loaded; this allows them to be used before
  Initialize() was called.
- Initialize() *always* (re-)loads the configuration; this makes sure
  that the correct configuration is used when actually calling commands.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-11-08 11:39:07 +01:00
..
builder unused-for is a deprecated synonym 2019-10-30 14:52:14 +11:00
bundlefile Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
checkpoint formatter package heavy refactoring 2018-10-23 17:05:44 +02:00
commands Merge pull request #1602 from thaJeztah/hide_experimental_deploy 2019-02-08 13:53:12 -08:00
config File is not `goimports`-ed (goimports) 2019-10-31 19:22:24 +01:00
container cli/command/container: Using the variable on range scope `c` in function literal (scopelint) 2019-10-31 19:22:42 +01:00
context cli/command/context: Using the variable on range scope `c` in function literal (scopelint) 2019-10-31 19:22:35 +01:00
engine Remove e-mail from trial flow 2019-01-08 00:35:24 +01:00
formatter Merge pull request #2107 from jonatasbaldin/2047-fix-image-createdsince-without-value 2019-11-05 09:46:14 +01:00
idresolver File is not `goimports`-ed (goimports) 2019-10-31 19:22:24 +01:00
image cli: remove unnecessary newlines (whitespace) 2019-10-31 19:22:36 +01:00
inspect Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
manifest Add riscv64 to manifest annotation and bash completion 2019-09-10 13:00:23 -03:00
network Refactor network parsing, add preliminary support for multiple networks 2019-04-03 16:42:57 +02:00
node File is not `goimports`-ed (goimports) 2019-10-31 19:22:24 +01:00
plugin cli/command/plugin/list_test.go:61:31: `TestList$1` - `filter` is unused (unparam) 2019-10-31 19:22:19 +01:00
registry cli/command/registry/login_test.go:66:25: unnecessary conversion (unconvert) 2019-10-31 19:22:25 +01:00
secret cli/command/secret: G101: Potential hardcoded credentials (gosec) 2019-10-31 19:22:27 +01:00
service service: remove unused opts from newService() (unparam) 2019-10-31 19:22:43 +01:00
stack cli/command/stack/kubernetes: Using the variable on range scope `c` in function literal (scopelint) 2019-10-31 19:22:42 +01:00
swarm File is not `goimports`-ed (goimports) 2019-10-31 19:22:24 +01:00
system cli/command/system/info.go:116:68: prettyPrintClientInfo - result 0 (error) is always nil (unparam) 2019-10-31 19:22:20 +01:00
task File is not `goimports`-ed (goimports) 2019-10-31 19:22:24 +01:00
testdata Dynamically register kubernetes context store endpoint type. 2019-05-20 13:28:11 +01:00
trust cli/command/trust: Using the variable on range scope `keyBytes` in function literal (scopelint) 2019-10-31 19:22:35 +01:00
volume File is not `goimports`-ed (goimports) 2019-10-31 19:22:24 +01:00
cli.go app-214 Load Client info in getter function 2019-11-08 11:39:07 +01:00
cli_options.go Dynamically register kubernetes context store endpoint type. 2019-05-20 13:28:11 +01:00
cli_options_test.go Unit test for WithContentTrustFromEnv 2019-01-29 11:26:40 +00:00
cli_test.go cli/command: Using the variable on range scope `testcase` in function literal (scopelint) 2019-10-31 19:22:36 +01:00
context.go Cleanup context store interfaces 2019-04-18 15:49:36 +02:00
defaultcontextstore.go Push check for kubernetes requirement down into the endpoint 2019-05-20 13:28:11 +01:00
defaultcontextstore_test.go Dynamically register kubernetes context store endpoint type. 2019-05-20 13:28:11 +01:00
events_utils.go updated vendoring 2017-09-01 19:41:06 -04:00
orchestrator.go Fast Context Switch: commands 2019-01-10 22:25:43 +01:00
orchestrator_test.go Introduce docker context store 2019-01-04 17:06:51 +01:00
registry.go Simplify ElectAuthServer 2019-03-28 21:08:13 +00:00
registry_test.go Remove docker api dependency from cli/config 2019-01-31 21:25:43 +00:00
streams.go Extract streams helpers from command package to their own package to remove a cyclic dependency from command to internal/containerizedengine 2019-01-28 14:36:00 +01:00
trust.go Refactor content_trust cli/flags handling 2018-03-08 15:00:43 -05:00
utils.go cli/command/utils: SA1006: printf-style with no further arguments (staticcheck) 2019-10-31 19:22:29 +01:00
utils_test.go cli-plugins: alias an existing allowed command (only builder for now) 2019-04-19 01:26:45 +00:00