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

Function newFormat

cli/command/checkpoint/formatter.go:14–19  ·  view source on GitHub ↗

newFormat returns a format for use with a checkpointContext.

(source string)

Source from the content-addressed store, hash-verified

12
13// newFormat returns a format for use with a checkpointContext.
14func newFormat(source string) formatter.Format {
15 if source == formatter.TableFormatKey {
16 return defaultCheckpointFormat
17 }
18 return formatter.Format(source)
19}
20
21// formatWrite writes formatted checkpoints using the Context
22func formatWrite(fmtCtx formatter.Context, checkpoints []checkpoint.Summary) error {

Callers 2

runListFunction · 0.70

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…