File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ gh-dl handles archived or compressed file as well`,
31
31
ghRelease := ghdl.GHRelease {RepoPath : repo , TagName : tag }
32
32
ghReleaseDl , err := ghRelease .GetGHReleases ()
33
33
if err != nil {
34
- h .Print (fmt .Sprintf ("get gh releases failed: %s\n " , err ), h .PrintModeErr )
34
+ h .Print (fmt .Sprintf ("get gh releases failed: %s" , err ), h .PrintModeErr )
35
+ os .Exit (1 )
35
36
}
36
37
37
38
if binaryNameFlag != "" {
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ func (m model) View() string {
57
57
colorS := paddingS .Copy ().
58
58
Foreground (blue ).BorderLeft (true ).BorderForeground (blue )
59
59
if m .selected == - 1 {
60
- s := paddingS .Copy ().Foreground (yellow ).Render ("gh-dl can't figure out which release to download\n please select it manully" ) + "\n "
60
+ s := " \n " + paddingS .Copy ().Foreground (yellow ).Render ("gh-dl can't figure out which release to download\n please select it manully" ) + "\n \n "
61
61
for i , choice := range m .choices {
62
62
if m .cursor == i {
63
63
s += colorS .Render (choice ) + "\n "
@@ -68,7 +68,7 @@ func (m model) View() string {
68
68
// Send the UI for rendering
69
69
return s + "\n "
70
70
} else {
71
- s := paddingS .Copy ().Foreground (yellow ).Render (fmt .Sprintf ("start downloading %s" , lipgloss .NewStyle ().Foreground (blue ).Render (m .choices [m .selected ]))) + "\n "
71
+ s := " \n " + paddingS .Copy ().Foreground (yellow ).Render (fmt .Sprintf ("start downloading %s" , lipgloss .NewStyle ().Foreground (blue ).Render (m .choices [m .selected ]))) + "\n "
72
72
return s
73
73
}
74
74
}
You can’t perform that action at this time.
0 commit comments