DockerCLI/cli/command/system
Sebastiaan van Stijn f914316a97
fix docker version --format=json not outputting json format
The --format=json option was added for all inspect commands, but was not
implemented for "docker version". This patch implements the missing option.

Before this patch:

    docker version --format=json
    json

With this patch:

    docker version --format=json
    {"Client":{"Platform":{"Name":""},"Version":"24.0.0-dev","ApiVersion":"..."}}

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 23bd746c43)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-04-26 12:12:25 +02:00
..
testdata fix docker version --format=json not outputting json format 2023-04-26 12:12:25 +02:00
client_test.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
cmd.go Revert "Disable `docker system dial-stdio` on Windows" 2019-03-12 14:57:52 +00:00
df.go Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
dial_stdio.go Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
events.go format code with gofumpt 2022-09-30 11:59:11 +02:00
info.go fix docker info --format=json not outputting json format 2023-04-26 12:12:25 +02:00
info_test.go fix docker info --format=json not outputting json format 2023-04-26 12:12:25 +02:00
inspect.go format code with gofumpt 2022-09-30 11:59:11 +02:00
prune.go cmd: set double quotes as code delimiter 2023-01-06 19:15:33 +01:00
prune_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01:00
version.go fix docker version --format=json not outputting json format 2023-04-26 12:12:25 +02:00
version_test.go fix docker version --format=json not outputting json format 2023-04-26 12:12:25 +02:00