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

Method Parent

cli/command/formatter/buildcache.go:125–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123}
124
125func (c *buildCacheContext) Parent() string {
126 var parent string
127 if len(c.v.Parents) > 0 {
128 parent = strings.Join(c.v.Parents, ", ")
129 }
130 if c.trunc {
131 return TruncateID(parent)
132 }
133 return parent
134}
135
136func (c *buildCacheContext) CacheType() string {
137 return c.v.Type

Callers 8

commandAliasesFunction · 0.80
topCommandsFunction · 0.80
operationSubCommandsFunction · 0.80
getFullCommandNameFunction · 0.80
hideUnsupportedFeaturesFunction · 0.80
findCommandFunction · 0.80
areSubcommandsSupportedFunction · 0.80
hasTagsFunction · 0.80

Calls 1

TruncateIDFunction · 0.85

Tested by

no test coverage detected