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

Function printDetails

cli/command/image/tree.go:399–413  ·  view source on GitHub ↗
(out tui.Output, headers []imgColumn, defaultColor aec.ANSI, details imageDetails)

Source from the content-addressed store, hash-verified

397}
398
399func printDetails(out tui.Output, headers []imgColumn, defaultColor aec.ANSI, details imageDetails) {
400 for _, h := range headers {
401 if h.DetailsValue == nil {
402 continue
403 }
404
405 _, _ = fmt.Fprint(out, strings.Repeat(" ", columnSpacing))
406 clr := defaultColor
407 if h.Color != nil {
408 clr = *h.Color
409 }
410 val := h.DetailsValue(&details)
411 _, _ = fmt.Fprint(out, h.Print(clr, val))
412 }
413}
414
415func printChildren(out tui.Output, headers []imgColumn, img topImage, normalColor aec.ANSI) {
416 for idx, sub := range img.Children {

Callers 2

printImageTreeFunction · 0.85
printChildrenFunction · 0.85

Calls 1

PrintMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…