mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
refactor: NewTable for consistent CLI table rendering, style images for ls,ps
This commit is contained in:
@@ -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