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

Method IsTable

cli/command/formatter/formatter.go:32–34  ·  view source on GitHub ↗

IsTable returns true if the format is a table-type format

()

Source from the content-addressed store, hash-verified

30
31// IsTable returns true if the format is a table-type format
32func (f Format) IsTable() bool {
33 return strings.HasPrefix(string(f), TableFormatKey)
34}
35
36// IsJSON returns true if the format is the JSON format
37func (f Format) IsJSON() bool {

Callers 6

PrintFunction · 0.80
TestFormatFunction · 0.80
NewImageFormatFunction · 0.80
postFormatMethod · 0.80
contextFormatMethod · 0.80
verboseWriteMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestFormatFunction · 0.64