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

Function shouldUseTree

cli/command/image/list.go:149–175  ·  view source on GitHub ↗
(options imagesOptions)

Source from the content-addressed store, hash-verified

147}
148
149func shouldUseTree(options imagesOptions) (bool, error) {
150 if options.quiet {
151 if options.tree {
152 return false, errors.New("--quiet is not yet supported with --tree")
153 }
154 return false, nil
155 }
156 if options.noTrunc {
157 if options.tree {
158 return false, errors.New("--no-trunc is not yet supported with --tree")
159 }
160 return false, nil
161 }
162 if options.showDigests {
163 if options.tree {
164 return false, errors.New("--show-digest is not yet supported with --tree")
165 }
166 return false, nil
167 }
168 if options.format != "" {
169 if options.tree {
170 return false, errors.New("--format is not yet supported with --tree")
171 }
172 return false, nil
173 }
174 return true, nil
175}
176
177// isDangling is a copy of [formatter.isDangling].
178func isDangling(img image.Summary) bool {

Callers 1

runImagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…