File tree Expand file tree Collapse file tree 2 files changed +18
-14
lines changed
Expand file tree Collapse file tree 2 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import (
1919
2020const (
2121 DefaultRepoURL = "https://github.com/vigo999/mindspore-skills"
22- DefaultRepoBranch = "refactor-arch-4.0 "
22+ DefaultRepoBranch = "refactor-arch-4.1 "
2323 defaultRepoName = "mindspore-skills"
2424 defaultSkillsDir = "skills"
2525 defaultCommitFile = ".ms-cli-commit"
@@ -505,7 +505,6 @@ func (s *DefaultRepoSync) ensureSkillsDir(skillsDir string) error {
505505 return nil
506506}
507507
508-
509508func (s * DefaultRepoSync ) logf (format string , args ... any ) {
510509 if s .logWriter == nil {
511510 return
@@ -665,7 +664,6 @@ func ShortCommit(commit string) string {
665664 return commit [:12 ]
666665}
667666
668-
669667func defaultRunCommand (name string , args ... string ) (string , error ) {
670668 ctx , cancel := context .WithTimeout (context .Background (), defaultCommandLimit )
671669 defer cancel ()
Original file line number Diff line number Diff line change @@ -8,10 +8,15 @@ import (
88 "time"
99
1010 tea "github.com/charmbracelet/bubbletea"
11+ "github.com/charmbracelet/lipgloss"
1112 "github.com/vigo999/ms-cli/internal/update"
1213 "github.com/vigo999/ms-cli/internal/version"
1314)
1415
16+ var updatePromptSelectedStyle = lipgloss .NewStyle ().
17+ Foreground (lipgloss .Color ("117" )).
18+ Bold (true )
19+
1520// updateChoice is the result of the update prompt.
1621type updateChoice int
1722
@@ -22,16 +27,16 @@ const (
2227
2328// updatePrompt is a mini Bubble Tea model for the pre-TUI update screen.
2429type updatePrompt struct {
25- result * update.CheckResult
26- program * tea.Program
27- cursor int
28- options []string
29- chosen bool
30- choice updateChoice
31- message string // status message after selection
32- quitting bool
33- downloaded int64
34- total int64
30+ result * update.CheckResult
31+ program * tea.Program
32+ cursor int
33+ options []string
34+ chosen bool
35+ choice updateChoice
36+ message string // status message after selection
37+ quitting bool
38+ downloaded int64
39+ total int64
3540 formattedNotes string // pre-computed from ReleaseNotes
3641}
3742
@@ -136,7 +141,8 @@ func (m *updatePrompt) View() string {
136141
137142 for i , opt := range m .options {
138143 if i == m .cursor {
139- b .WriteString (fmt .Sprintf (" > %s\n " , opt ))
144+ b .WriteString (updatePromptSelectedStyle .Render (fmt .Sprintf (" > %s" , opt )))
145+ b .WriteString ("\n " )
140146 } else {
141147 b .WriteString (fmt .Sprintf (" %s\n " , opt ))
142148 }
You can’t perform that action at this time.
0 commit comments