mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 21:29:02 +00:00
refactor: NewTable for consistent CLI table rendering, style images for ls,ps
This commit is contained in:
1 parent
9aee75ba28
commit
e22cdf0b18
6 files changed
+35
-41
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user