DockerCLI/command/node
Yong Tang 4fc1d6782c 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
..
testdata Add some unit tests to the node and swarm cli code 2017-01-09 18:30:15 +01:00
client_test.go Add some unit tests to the node and swarm cli code 2017-01-09 18:30:15 +01:00
cmd.go cli: Wrong error message from "node ps" outside swarm mode 2017-03-21 17:01:07 -07:00
demote.go Add some unit tests to the node and swarm cli code 2017-01-09 18:30:15 +01:00
demote_test.go Replace fmt.Errorf() with errors.Errorf() in the cli 2017-03-24 16:58:07 -04:00
inspect.go Delete dots to align with other commands description 2017-02-23 16:46:08 +08:00
inspect_test.go Merge pull request #31989 from aaronlehmann/node-ps-outside-swarm-mode 2017-04-03 16:15:24 +02:00
list.go Add `--format` for `docker node ls` 2017-04-04 11:26:35 -07:00
list_test.go Add `--format` for `docker node ls` 2017-04-04 11:26:35 -07:00
opts.go Add some unit tests to the node and swarm cli code 2017-01-09 18:30:15 +01:00
promote.go Add some unit tests to the node and swarm cli code 2017-01-09 18:30:15 +01:00
promote_test.go Replace fmt.Errorf() with errors.Errorf() in the cli 2017-03-24 16:58:07 -04:00
ps.go Merge pull request #31989 from aaronlehmann/node-ps-outside-swarm-mode 2017-04-03 16:15:24 +02:00
ps_test.go Replace fmt.Errorf() with errors.Errorf() in the cli 2017-03-24 16:58:07 -04:00
remove.go Replace fmt.Errorf() with errors.Errorf() in the cli 2017-03-24 16:58:07 -04:00
remove_test.go Replace fmt.Errorf() with errors.Errorf() in the cli 2017-03-24 16:58:07 -04:00
update.go Replace fmt.Errorf() with errors.Errorf() in the cli 2017-03-24 16:58:07 -04:00
update_test.go Replace fmt.Errorf() with errors.Errorf() in the cli 2017-03-24 16:58:07 -04:00