@@ -68,38 +68,32 @@ var (
68
68
dimStyle = lipgloss .NewStyle ().
69
69
Foreground (lipgloss .Color ("#666666" ))
70
70
71
+ toolsetBadgeStyle = lipgloss .NewStyle ().
72
+ Foreground (lipgloss .Color ("#84a5ecff" ))
73
+
71
74
successStyle = lipgloss .NewStyle ().
72
75
Foreground (lipgloss .Color ("#00FF00" )).
73
76
Bold (true )
74
77
75
- errorStyle = lipgloss .NewStyle ().
76
- Foreground (lipgloss .Color ("#FF0000" )).
77
- Bold (true )
78
78
79
79
asciiArtStyle = lipgloss .NewStyle ().
80
80
Foreground (lipgloss .Color ("#7D56F4" )).
81
81
Bold (true )
82
82
83
- welcomeTextStyle = lipgloss .NewStyle ().
84
- Foreground (lipgloss .Color ("#FFFFFF" )).
85
- MarginTop (1 ).
86
- MarginBottom (1 )
87
83
88
84
accentStyle = lipgloss .NewStyle ().
89
85
Foreground (lipgloss .Color ("#00D7FF" )).
90
86
Bold (true )
91
87
)
92
88
93
89
const asciiArt = `
94
- _____ _ _ _ _ _ __ __ _____ _____
95
- / ____(_) | | | | | | | | \/ |/ ____| __ \
96
- | | __ _| |_| |__| |_ _| |__ | \ / | | | |__) |
97
- | | |_ | | __| __ | | | | '_ \ | |\/| | | | ___/
98
- | |__| | | |_| | | | |_| | |_) | | | | | |____| |
99
- \_____|_|\__|_| |_|\__,_|_.__/ |_| |_|\_____|_|
100
-
101
- 🔧 Configuration Tool ⚙️
102
- `
90
+ _____ _ _ _ _ _ __ __ _____ _____ _____
91
+ / ____(_) | | | | | | | | \/ |/ ____| __ \ / ____|
92
+ | | __ _| |_| |__| |_ _| |__ | \ / | | | |__) || (___ ___ _ ____ _____ _ __
93
+ | | |_ | | __| __ | | | | '_ \ | |\/| | | | ___/ \___ \ / _ \ '__\ \ / / _ \ '__|
94
+ | |__| | | |_| | | | |_| | |_) | | | | |____| | ____) | __/ | \ V / __/ |
95
+ \_____|_|\__|_| |_|\__,_|_.__/ |_| |_|\_____|_| |_____/ \___|_| \_/ \___|_|
96
+ `
103
97
104
98
type toolInfo struct {
105
99
name string
@@ -137,6 +131,11 @@ func initialConfigureModel(toolsets []toolsetInfo) configureModel {
137
131
allTools = append (allTools ,ts .tools ... )
138
132
}
139
133
134
+ // Sort all tools alphabetically by name
135
+ sort .Slice (allTools ,func (i ,j int )bool {
136
+ return allTools [i ].name < allTools [j ].name
137
+ })
138
+
140
139
return configureModel {
141
140
toolsets :toolsets ,
142
141
allTools :allTools ,
@@ -390,7 +389,7 @@ func (m configureModel) View() string {
390
389
)
391
390
392
391
// Add category badge
393
- category := dimStyle .Render (fmt .Sprintf ("[%s]" ,tool .toolsetName ))
392
+ category := toolsetBadgeStyle .Render (fmt .Sprintf ("[%s]" ,tool .toolsetName ))
394
393
line += category
395
394
396
395
// Add description (truncated if needed)
@@ -584,22 +583,17 @@ func (m configureModel) renderConfirmation() string {
584
583
s .WriteString ("\n \n " )
585
584
586
585
// Print JSON format
587
- s .WriteString (dimStyle .Render (`"args": [` ))
586
+ s .WriteString (itemStyle .Render (`"args": [` ))
588
587
s .WriteString ("\n " )
589
588
for i ,arg := range cmdArgs {
590
589
comma := ","
591
590
if i == len (cmdArgs )- 1 {
592
591
comma = ""
593
592
}
594
- s .WriteString (dimStyle .Render (fmt .Sprintf (` "%s"%s` ,arg ,comma )))
593
+ s .WriteString (itemStyle .Render (fmt .Sprintf (` "%s"%s` ,arg ,comma )))
595
594
s .WriteString ("\n " )
596
595
}
597
- s .WriteString (dimStyle .Render (`],` ))
598
- s .WriteString ("\n \n " )
599
-
600
- s .WriteString (titleStyle .Render ("Or run directly with:" ))
601
- s .WriteString ("\n " )
602
- s .WriteString (successStyle .Render (fmt .Sprintf ("go %s" ,strings .Join (cmdArgs ," " ))))
596
+ s .WriteString (itemStyle .Render (`],` ))
603
597
s .WriteString ("\n \n " )
604
598
605
599
return s .String ()