DockerCLI/cli
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
..
command Refactor/cleanup of docker info 2017-09-11 15:13:06 +02:00
compose updated vendoring 2017-09-01 19:41:06 -04:00
config Use new internal testutil.ErrorContains() 2017-08-22 10:14:25 -04:00
debug updated vendoring 2017-09-01 19:41:06 -04:00
flags updated vendoring 2017-09-01 19:41:06 -04:00
trust updated vendoring 2017-09-01 19:41:06 -04:00
winresources Add windows resources to binary. 2017-05-15 18:03:03 -04:00
cobra.go fix docker/docker/cli path in comment 2017-04-24 11:31:08 -07:00
error.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
required.go Singularize / pluralize "argument(s)" in error message 2017-08-12 18:25:38 +02:00
required_test.go Singularize / pluralize "argument(s)" in error message 2017-08-12 18:25:38 +02:00
version.go Display proper version information 2017-05-09 14:22:51 -07:00