DockerCLI/cli/command
Sebastiaan van Stijn 6f1b510843
Refactor/cleanup of docker info
Some mild refactoring of the docker info command;

- Use `fmt.Fprinln()` instead of `fmt.Fprintf()` where possible
- Rename `fprintfIfNotEmpty()` to `fprintlnNonEmpty()`, and removed
  return variables, because they were not used. `fprintlnNonEmpty()`
  now uses fmt.Fprintln()` instead of `fmt.Fprintf()`, because
  formatting was not used.
- Use `fprintlnNonEmpty()` to get rid of some `if` statements
- Extract printing Swarm-related information to a `printSwarmInfo()` function
- Change `Http Proxy` and `Https Proxy` to `HTTP Proxy` / `HTTPS Proxy`

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-09-11 15:13:06 +02:00
..
bundlefile Import docker/docker/cli 2017-04-17 17:40:59 -04:00
checkpoint Use new internal testutil.ErrorContains() 2017-08-22 10:14:25 -04:00
commands Add support for configs 2017-05-11 13:42:49 -07:00
config Use new internal testutil.ErrorContains() 2017-08-22 10:14:25 -04:00
container updated vendoring 2017-09-01 19:41:06 -04:00
formatter Use golden files for tests that expect end-of-line whitespace 2017-09-07 17:50:44 -04:00
idresolver Move internal/test package out of cli. 2017-08-22 10:14:25 -04:00
image updated vendoring 2017-09-01 19:41:06 -04:00
inspect updated vendoring 2017-09-01 19:41:06 -04:00
network adding network list test 2017-08-29 16:30:37 +02:00
node Use new internal testutil.ErrorContains() 2017-08-22 10:14:25 -04:00
plugin updated vendoring 2017-09-01 19:41:06 -04:00
registry Add --format to docker-search 2017-08-23 01:37:54 +03:00
secret Use new internal testutil.ErrorContains() 2017-08-22 10:14:25 -04:00
service Use a local copy of ParseLogDetails 2017-09-07 12:50:25 -04:00
stack Merge pull request #424 from simonferquel/update-vendoring 2017-09-05 15:06:09 -04:00
swarm Use new internal testutil.ErrorContains() 2017-08-22 10:14:25 -04:00
system Refactor/cleanup of docker info 2017-09-11 15:13:06 +02:00
task Move internal/test package out of cli. 2017-08-22 10:14:25 -04:00
volume Use new internal testutil.ErrorContains() 2017-08-22 10:14:25 -04:00
cli.go Enable TCP Keep-Alive in Docker client 2017-08-02 14:35:03 -07:00
cli_test.go Add unit tests for initializing the client. 2017-08-18 12:49:23 -04:00
events_utils.go updated vendoring 2017-09-01 19:41:06 -04:00
in.go Fix docker run -it on windows 2017-05-03 18:41:19 -07:00
out.go updated vendoring 2017-09-01 19:41:06 -04:00
registry.go Move credential getting functions to the ConfigFile. 2017-06-27 13:46:47 +02:00
registry_test.go Move internal/test package out of cli. 2017-08-22 10:14:25 -04:00
stream.go Fix docker run -it on windows 2017-05-03 18:41:19 -07:00
trust.go Fix crash in containe run after pulling an image. 2017-08-31 17:08:02 -04:00
utils.go Add interfacer linter 2017-05-08 15:57:50 -04:00