mirror of https://github.com/docker/cli.git
f914316a97
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
|
||
---|---|---|
.. | ||
testdata | ||
client_test.go | ||
cmd.go | ||
df.go | ||
dial_stdio.go | ||
events.go | ||
info.go | ||
info_test.go | ||
inspect.go | ||
prune.go | ||
prune_test.go | ||
version.go | ||
version_test.go |