DockerCLI/cli/command/formatter
Phong Tran 0929bed42a
Fix psFormat's Size handling in config file
- do an early check if a custom format is specified either through the
  command-line, or through the cli's configuration, before adjusting
  the options (to add "size" if needed).
- also removes a redundant `options.Size = opts.size` line, as this value is
  already copied at the start of buildContainerListOptions()
- Update NewContainerFormat to use "table" format as a default if no format
  was given.

Co-authored-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Phong Tran <tran.pho@northeastern.edu>
2022-06-07 12:48:56 +02:00
..
tabwriter use our own version of text/tabwriter 2022-04-25 15:01:41 +02:00
testdata formatter: reduce minimum width for columns in table-view 2020-08-31 16:31:15 +02:00
buildcache.go formatter package heavy refactoring 2018-10-23 17:05:44 +02:00
container.go Fix psFormat's Size handling in config file 2022-06-07 12:48:56 +02:00
container_test.go linting: fix incorrectly formatted errors (revive) 2022-03-28 10:37:25 +02:00
context.go formatter: mark KubernetesEndpoint templating option as deprecated 2022-02-24 13:36:01 +01:00
custom.go Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
disk_usage.go vendor: github.com/docker/docker 2ed904cad7055847796433cc56ef1d1de0da868c 2022-04-30 12:01:37 +02:00
disk_usage_test.go linting: fix incorrectly formatted errors (revive) 2022-03-28 10:37:25 +02:00
displayutils.go Refactor stringutils and fix docker search output form when the description has CJK character 2017-10-27 11:15:10 +08:00
displayutils_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01:00
formatter.go use our own version of text/tabwriter 2022-04-25 15:01:41 +02:00
formatter_test.go Added "json" as specific value for --format flag in list commands, as an alias to `{{json .}}` 2022-03-15 15:33:19 +01:00
image.go Return empty string if image createdAt is zero 2019-10-29 17:15:28 -03:00
image_test.go linting: fix incorrectly formatted errors (revive) 2022-03-28 10:37:25 +02:00
reflect.go formatter package heavy refactoring 2018-10-23 17:05:44 +02:00
reflect_test.go Add unused linter. 2017-06-14 16:54:27 -07:00
volume.go Add cluster volume support 2022-05-13 20:06:11 +02:00
volume_test.go Add cluster volume support 2022-05-13 20:06:11 +02:00