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

Function NewClientContextFormat

cli/command/formatter/context.go:14–22  ·  view source on GitHub ↗

NewClientContextFormat returns a Format for rendering using a Context

(source string, quiet bool)

Source from the content-addressed store, hash-verified

12
13// NewClientContextFormat returns a Format for rendering using a Context
14func NewClientContextFormat(source string, quiet bool) Format {
15 if quiet {
16 return quietContextFormat
17 }
18 if source == TableFormatKey {
19 return ClientContextTableFormat
20 }
21 return Format(source)
22}
23
24// ClientContext is a context for display
25type ClientContext struct {

Callers

nothing calls this directly

Calls 1

FormatTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…