style: format Go files with gofmt to satisfy CI check

swadhinbiswas committed 2 months ago
d23fc60
1 parent a8a1cb4
commit d23fc60
3 files changed
+17 -17
▼internal/model/app.go
+11-11
65
65
}
66
66
67
67
var SourceMetaByID = map[string]SourceMeta{
68
- "apt": {Label: "apt", Icon: "⬡", Color: "#22C55E"},
69
- "dnf": {Label: "dnf", Icon: "◈", Color: "#FACC15"},
70
- "pacman": {Label: "pacman", Icon: "◎", Color: "#00E5FF"},
71
- "aur": {Label: "AUR", Icon: "▲", Color: "#A855F7"},
72
- "zypper": {Label: "zypper", Icon: "◇", Color: "#38BDF8"},
73
- "flatpak": {Label: "flatpak", Icon: "◆", Color: "#06B6D4"},
74
- "snap": {Label: "snap", Icon: "▣", Color: "#F43F5E"},
75
- "npm": {Label: "npm -g", Icon: "⬢", Color: "#CBD5E1"},
76
- "pipx": {Label: "pipx", Icon: "🐍", Color: "#FACC15"},
77
- "cargo": {Label: "cargo", Icon: "🦀", Color: "#FB923C"},
78
- "gem": {Label: "gem", Icon: "💎", Color: "#EC4899"},
68
+ "apt": {Label: "apt", Icon: "⬡", Color: "#22C55E"},
69
+ "dnf": {Label: "dnf", Icon: "◈", Color: "#FACC15"},
70
+ "pacman": {Label: "pacman", Icon: "◎", Color: "#00E5FF"},
71
+ "aur": {Label: "AUR", Icon: "▲", Color: "#A855F7"},
72
+ "zypper": {Label: "zypper", Icon: "◇", Color: "#38BDF8"},
73
+ "flatpak": {Label: "flatpak", Icon: "◆", Color: "#06B6D4"},
74
+ "snap": {Label: "snap", Icon: "▣", Color: "#F43F5E"},
75
+ "npm": {Label: "npm -g", Icon: "⬢", Color: "#CBD5E1"},
76
+ "pipx": {Label: "pipx", Icon: "🐍", Color: "#FACC15"},
77
+ "cargo": {Label: "cargo", Icon: "🦀", Color: "#FB923C"},
78
+ "gem": {Label: "gem", Icon: "💎", Color: "#EC4899"},
79
79
"go": {Label: "go install", Icon: "🐹", Color: "#00E5FF"},
80
80
"appimage": {Label: "AppImage", Icon: "📦", Color: "#38BDF8"},
81
81
"orphan": {Label: "Orphan", Icon: "🍂", Color: "#F59E0B"},
82
82
▼internal/ui/app.go
+2-2
888
888
if innerTableH < 3 {
889
889
innerTableH = 3
890
890
}
891
- tableW := (w * 3) / 5 - 2
891
+ tableW := (w*3)/5 - 2
892
892
detailW := w - tableW - 3
893
893
if detailW < 36 {
894
894
detailW = 36
905
905
b.WriteString("\n")
906
906
907
907
// bottom split: progress/activity | quick actions
908
- leftW := (w * 3) / 5 - 2
908
+ leftW := (w*3)/5 - 2
909
909
rightW := w - leftW - 3
910
910
var bottom string
911
911
if m.progress.Running() {
912
912
▼internal/ui/styles.go
+4-4
40
40
Padding(0, 1)
41
41
42
42
HeaderMuted = lipgloss.NewStyle().
43
- Foreground(mutedColor).
44
- Padding(0, 1)
43
+ Foreground(mutedColor).
44
+ Padding(0, 1)
45
45
46
46
Title = lipgloss.NewStyle().Bold(true).Foreground(primary)
47
47
65
65
Muted = lipgloss.NewStyle().Foreground(mutedColor)
66
66
67
67
KeyBadge = lipgloss.NewStyle().
68
- Bold(true).
69
- Foreground(primary)
68
+ Bold(true).
69
+ Foreground(primary)
70
70
)
71
71
72
72
// SourceBadge renders the colored source label with its icon.
73
73