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

Function format

cli/command/context/list.go:117–123  ·  view source on GitHub ↗
(dockerCli command.Cli, opts *listOptions, contexts []*formatter.ClientContext)

Source from the content-addressed store, hash-verified

115}
116
117func format(dockerCli command.Cli, opts *listOptions, contexts []*formatter.ClientContext) error {
118 contextCtx := formatter.Context{
119 Output: dockerCli.Out(),
120 Format: formatter.NewClientContextFormat(opts.format, opts.quiet),
121 }
122 return formatter.ClientContextWrite(contextCtx, contexts)
123}

Callers 15

diffFormatWriteFunction · 0.85
statsFormatWriteFunction · 0.85
formatWriteFunction · 0.85
formatWriteFunction · 0.85
historyWriteFunction · 0.85
formatWriteFunction · 0.85
formatWriteFunction · 0.85
inspectFormatWriteFunction · 0.85
ListFormatWriteFunction · 0.85
runListFunction · 0.85
formatWriteFunction · 0.85
stackWriteFunction · 0.85

Calls 1

OutMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…