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

Method Print

cli/command/image/tree.go:483–492  ·  view source on GitHub ↗
(clr aec.ANSI, s string)

Source from the content-addressed store, hash-verified

481}
482
483func (h imgColumn) Print(clr aec.ANSI, s string) string {
484 switch h.Align {
485 case alignCenter:
486 return h.PrintC(clr, s)
487 case alignRight:
488 return h.PrintR(clr, s)
489 case alignLeft:
490 }
491 return h.PrintL(clr, s)
492}
493
494func (h imgColumn) PrintC(clr aec.ANSI, s string) string {
495 ln := tui.Width(s)

Callers 8

printImageTreeFunction · 0.45
printDetailsFunction · 0.45
printChildrenFunction · 0.45
printNamesFunction · 0.45
runPSFunction · 0.45
readKeyFunction · 0.45
runPSFunction · 0.45
runPsFunction · 0.45

Calls 3

PrintCMethod · 0.95
PrintRMethod · 0.95
PrintLMethod · 0.95

Tested by

no test coverage detected