mirror of https://github.com/docker/cli.git
list/tree: Add spacing before the content and first image
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
parent
0242a1e3c6
commit
a9b78da546
|
@ -132,6 +132,7 @@ func printImageTree(dockerCLI command.Cli, images []topImage) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
_, _ = fmt.Fprintln(out, warningColor.Apply("WARNING: This is an experimental feature. The output may change and shouldn't be depended on."))
|
_, _ = fmt.Fprintln(out, warningColor.Apply("WARNING: This is an experimental feature. The output may change and shouldn't be depended on."))
|
||||||
|
_, _ = fmt.Fprintln(out, "")
|
||||||
|
|
||||||
columns := []imgColumn{
|
columns := []imgColumn{
|
||||||
{
|
{
|
||||||
|
@ -213,11 +214,8 @@ func printImageTree(dockerCLI command.Cli, images []topImage) error {
|
||||||
_, _ = fmt.Fprintln(out)
|
_, _ = fmt.Fprintln(out)
|
||||||
|
|
||||||
// Print images
|
// Print images
|
||||||
for idx, img := range images {
|
for _, img := range images {
|
||||||
if idx != 0 {
|
|
||||||
_, _ = fmt.Fprintln(out, "")
|
_, _ = fmt.Fprintln(out, "")
|
||||||
}
|
|
||||||
|
|
||||||
printNames(out, columns, img, topNameColor)
|
printNames(out, columns, img, topNameColor)
|
||||||
printDetails(out, columns, normalColor, img.Details)
|
printDetails(out, columns, normalColor, img.Details)
|
||||||
printChildren(out, columns, img, normalColor)
|
printChildren(out, columns, img, normalColor)
|
||||||
|
|
Loading…
Reference in New Issue