Skip to content

Commit

Permalink
list/tree: Add spacing before the content and first image
Browse files Browse the repository at this point in the history
Signed-off-by: Paweł Gronowski <[email protected]>
  • Loading branch information
vvoland committed Aug 16, 2024
1 parent 1f98b33 commit 835cad9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cli/command/image/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, "")

columns := []imgColumn{
{
Expand Down Expand Up @@ -213,11 +214,8 @@ func printImageTree(dockerCLI command.Cli, images []topImage) error {
_, _ = fmt.Fprintln(out)

// Print images
for idx, img := range images {
if idx != 0 {
_, _ = fmt.Fprintln(out, "")
}

for _, img := range images {
_, _ = fmt.Fprintln(out, "")
printNames(out, columns, img, topNameColor)
printDetails(out, columns, normalColor, img.Details)
printChildren(out, columns, img, normalColor)
Expand Down

0 comments on commit 835cad9

Please sign in to comment.