DockerCLI/cli/command/system
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
..
testdata Include whether the managers in the swarm are autolocked as part of `docker info`. 2017-08-25 16:33:46 -07:00
client_test.go Fix: skip build-cache prune on unsupported versions 2017-07-17 11:55:35 +02:00
cmd.go Unexport subcommands 2017-07-18 15:26:45 +02:00
df.go Unexport subcommands 2017-07-18 15:26:45 +02:00
events.go Import `docker/docker/pkg/templates` to cli 2017-08-08 17:26:24 +02:00
info.go Refactor/cleanup of docker info 2017-09-11 15:13:06 +02:00
info_test.go Include whether the managers in the swarm are autolocked as part of `docker info`. 2017-08-25 16:33:46 -07:00
inspect.go Use `scope=swarm` for service related network inspect. 2017-06-13 20:26:12 +00:00
prune.go Error if "until" filter is combined with "--volumes" on system prune 2017-07-21 12:11:53 +02:00
prune_test.go Move internal/test package out of cli. 2017-08-22 10:14:25 -04:00
version.go Import `docker/docker/pkg/templates` to cli 2017-08-08 17:26:24 +02:00