Skip to content

Commit 3ba83e2

Browse files
committed
Prepare refactor-arch-4.28 release
1 parent 75931b8 commit 3ba83e2

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

integrations/skills/repo.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919

2020
const (
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-
509508
func (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-
669667
func defaultRunCommand(name string, args ...string) (string, error) {
670668
ctx, cancel := context.WithTimeout(context.Background(), defaultCommandLimit)
671669
defer cancel()

internal/app/update.go

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff 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.
1621
type updateChoice int
1722

@@ -22,16 +27,16 @@ const (
2227

2328
// updatePrompt is a mini Bubble Tea model for the pre-TUI update screen.
2429
type 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
}

0 commit comments

Comments
 (0)