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

Function printChildren

cli/command/image/tree.go:415–432  ·  view source on GitHub ↗
(out tui.Output, headers []imgColumn, img topImage, normalColor aec.ANSI)

Source from the content-addressed store, hash-verified

413}
414
415func printChildren(out tui.Output, headers []imgColumn, img topImage, normalColor aec.ANSI) {
416 for idx, sub := range img.Children {
417 clr := normalColor
418 if !sub.Available {
419 clr = normalColor.With(aec.Faint)
420 }
421
422 text := sub.Platform
423 if idx != len(img.Children)-1 {
424 _, _ = fmt.Fprint(out, headers[0].Print(clr, "├─ "+text))
425 } else {
426 _, _ = fmt.Fprint(out, headers[0].Print(clr, "└─ "+text))
427 }
428
429 printDetails(out, headers, clr, sub.Details)
430 _, _ = fmt.Fprintln(out, "")
431 }
432}
433
434func printNames(out tui.Output, headers []imgColumn, img topImage, color, untaggedColor aec.ANSI) {
435 if len(img.Names) == 0 {

Callers 1

printImageTreeFunction · 0.85

Calls 3

printDetailsFunction · 0.85
WithMethod · 0.80
PrintMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…