refactor: NewTable for consistent CLI table rendering, style images for ls,ps

This commit is contained in:
Pasha Sviderski
2026-03-30 14:08:50 +10:00
parent 9aee75ba28
commit e22cdf0b18
6 changed files with 35 additions and 41 deletions
+2 -2
View File
@@ -114,7 +114,7 @@ func (sp *ServicePlan) Format() string {
if sp.IsNewService {
specTable.Row("", "image:", tui.FormatImage(sp.Spec.Container.Image, tui.Green))
} else {
specTable.Row("", "image:", tui.FormatImage(sp.Spec.Container.Image, lipgloss.NewStyle()))
specTable.Row("", "image:", tui.FormatImage(sp.Spec.Container.Image, tui.NoStyle))
}
} else {
mod := ""
@@ -233,7 +233,7 @@ func formatImageDiff(oldImage, newImage string) string {
}
if oldImage == newImage {
return tui.FormatImage(newImage, lipgloss.NewStyle())
return tui.FormatImage(newImage, tui.NoStyle)
}
oldRef, _ := reference.ParseDockerRef(oldImage)