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

Function newFormat

cli/command/registry/formatter_search.go:21–27  ·  view source on GitHub ↗

newFormat returns a Format for rendering using a searchContext.

(source string)

Source from the content-addressed store, hash-verified

19
20// newFormat returns a Format for rendering using a searchContext.
21func newFormat(source string) formatter.Format {
22 switch source {
23 case "", formatter.TableFormatKey:
24 return defaultSearchTableFormat
25 }
26 return formatter.Format(source)
27}
28
29// formatWrite writes the context.
30func formatWrite(fmtCtx formatter.Context, results client.ImageSearchResult) error {

Callers 2

TestSearchContextWriteFunction · 0.70
runSearchFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestSearchContextWriteFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…