From c38d916dbbbc411d435c11fa11fc462c27361d9a Mon Sep 17 00:00:00 2001 From: Pasha Sviderski Date: Thu, 23 Apr 2026 17:52:45 +1000 Subject: [PATCH] chore: hide STORE column in 'uc images' output if all machines use containerd image store --- cmd/uncloud/image/ls.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/uncloud/image/ls.go b/cmd/uncloud/image/ls.go index 91e6dd82..6e6e9ce5 100644 --- a/cmd/uncloud/image/ls.go +++ b/cmd/uncloud/image/ls.go @@ -260,6 +260,14 @@ func formatImageTable(rows []imageRow) string { columns[5].hide = true } + // Hide the "STORE" column if all machines use the containerd store. + hasNonContainerd := slices.ContainsFunc(rows, func(r imageRow) bool { + return r.store != "containerd" + }) + if !hasNonContainerd { + columns[6].hide = true + } + t := tui.NewTable() var headers []string