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
|
||
---|---|---|
.. | ||
docker-client-version.golden | ||
docker-client-version.json.golden | ||
docker-info-badsec-stderr.golden | ||
docker-info-badsec.golden | ||
docker-info-badsec.json.golden | ||
docker-info-daemon-warnings.json.golden | ||
docker-info-errors-stderr.golden | ||
docker-info-errors.golden | ||
docker-info-errors.json.golden | ||
docker-info-legacy-warnings.json.golden | ||
docker-info-no-swarm.golden | ||
docker-info-no-swarm.json.golden | ||
docker-info-plugins-warnings.golden | ||
docker-info-plugins.golden | ||
docker-info-plugins.json.golden | ||
docker-info-warnings.golden | ||
docker-info-with-labels-empty.golden | ||
docker-info-with-labels-nil.golden | ||
docker-info-with-swarm.golden | ||
docker-info-with-swarm.json.golden |