MCPcopy Index your code
hub / github.com/docker/cli / newDiffFormat

Function newDiffFormat

cli/command/container/formatter_diff.go:17–22  ·  view source on GitHub ↗

newDiffFormat returns a format for use with a diff [formatter.Context].

(source string)

Source from the content-addressed store, hash-verified

15
16// newDiffFormat returns a format for use with a diff [formatter.Context].
17func newDiffFormat(source string) formatter.Format {
18 if source == formatter.TableFormatKey {
19 return defaultDiffTableFormat
20 }
21 return formatter.Format(source)
22}
23
24// diffFormatWrite writes formatted diff using the [formatter.Context].
25func diffFormatWrite(fmtCtx formatter.Context, changes client.ContainerDiffResult) error {

Callers 2

runDiffFunction · 0.85

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…