mirror of https://github.com/docker/cli.git
fed9fa0f72
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> |
||
---|---|---|
.. | ||
testdata | ||
cmd.go | ||
create.go | ||
create_test.go | ||
export-import_test.go | ||
export.go | ||
import.go | ||
inspect.go | ||
inspect_test.go | ||
list.go | ||
list_test.go | ||
options.go | ||
remove.go | ||
remove_test.go | ||
show.go | ||
show_test.go | ||
update.go | ||
update_test.go | ||
use.go | ||
use_test.go |