mirror of https://github.com/docker/cli.git
258e27438f
Docker Desktop currently ships with the "cloud integration" wrapper,
which outputs an additional ContextType field in the JSON output.
While this field is non-standard, it made its way into Visual Studio's
Docker integration, which uses this to exclude "aci" and "eci" context
types that are not supported by Visual Studio.
This patch;
- conditionally adds a ContextType field to the JSON output
- but ONLY when using the default "{{json .}}" or "json" formats
(which are the formats used by Visual Studio)
- if the context is a "aci" or "eci" context, that type is
preserved, otherwise the default "moby" type is used.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit
|
||
---|---|---|
.. | ||
tabwriter | ||
testdata | ||
buildcache.go | ||
container.go | ||
container_test.go | ||
context.go | ||
custom.go | ||
disk_usage.go | ||
disk_usage_test.go | ||
displayutils.go | ||
displayutils_test.go | ||
formatter.go | ||
formatter_test.go | ||
image.go | ||
image_test.go | ||
reflect.go | ||
reflect_test.go | ||
volume.go | ||
volume_test.go |