moby--moby/cli/command/formatter
Yong Tang 32e21ecbfe Add `--format` for `docker node ls`
This fix tries to address the comment https://github.com/docker/docker/pull/30376#discussion_r97465334
where it was not possible to specify `--format` for `docker node ls`. The `--format` flag
is a quite useful flag that could be used in many places such as completion.

This fix implements `--format` for `docker node ls` and add `nodesFormat` in config.json
so that it is possible to specify the output when `docker node ls` is invoked.

Related documentations have been updated.

A set of unit tests have been added.

This fix is related to #30376.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-04-04 11:26:35 -07:00
..
checkpoint.go Use formatter in docker checkpoint ls 2017-03-19 09:24:15 +02:00
checkpoint_test.go Use formatter in docker checkpoint ls 2017-03-19 09:24:15 +02:00
container.go Merge pull request #30733 from yongtang/02022017-formatter-header 2017-03-03 11:25:19 -08:00
container_test.go Ignore some functions in the Go template when header is rendered 2017-02-10 19:34:50 -08:00
custom.go Allow `--format` to use different delim in `table` format 2017-02-10 19:34:50 -08:00
custom_test.go Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
diff.go Use formatter in docker diff 2017-03-30 10:33:40 +03:00
diff_test.go Use formatter in docker diff 2017-03-30 10:33:40 +03:00
disk_usage.go Allow `--format` to use different delim in `table` format 2017-02-10 19:34:50 -08:00
disk_usage_test.go Ignore some functions in the Go template when header is rendered 2017-02-10 19:34:50 -08:00
formatter.go Replace fmt.Errorf() with errors.Errorf() in the cli 2017-03-24 16:58:07 -04:00
image.go Ignore some functions in the Go template when header is rendered 2017-02-10 19:34:50 -08:00
image_test.go Allow `--format` to use different delim in `table` format 2017-02-10 19:34:50 -08:00
network.go Allow `--format` to use different delim in `table` format 2017-02-10 19:34:50 -08:00
network_test.go Allow `--format` to use different delim in `table` format 2017-02-10 19:34:50 -08:00
node.go Add `--format` for `docker node ls` 2017-04-04 11:26:35 -07:00
node_test.go Add `--format` for `docker node ls` 2017-04-04 11:26:35 -07:00
plugin.go Allow `--format` to use different delim in `table` format 2017-02-10 19:34:50 -08:00
plugin_test.go Allow `--format` to use different delim in `table` format 2017-02-10 19:34:50 -08:00
reflect.go Replace fmt.Errorf() with errors.Errorf() in the cli 2017-03-24 16:58:07 -04:00
reflect_test.go Fix broken JSON support in cli/command/formatter 2016-10-17 08:07:17 +00:00
secret.go Add format to secret ls 2017-03-19 09:22:30 +02:00
secret_test.go Add format to secret ls 2017-03-19 09:22:30 +02:00
service.go Add `PORTS` field for `docker service ls` (`ingress`) 2017-04-03 18:40:15 -07:00
service_test.go Add `PORTS` field for `docker service ls` (`ingress`) 2017-04-03 18:40:15 -07:00
stats.go Allow `--format` to use different delim in `table` format 2017-02-10 19:34:50 -08:00
stats_test.go Allow `--format` to use different delim in `table` format 2017-02-10 19:34:50 -08:00
task.go Fix error caused by overlapping merge of 30733 2017-03-03 13:26:00 -08:00
task_test.go Fix error caused by overlapping merge of 30733 2017-03-03 13:26:00 -08:00
volume.go Allow `--format` to use different delim in `table` format 2017-02-10 19:34:50 -08:00
volume_test.go Allow `--format` to use different delim in `table` format 2017-02-10 19:34:50 -08:00