Skip to content

Commit 85139d8

Browse files
authored
Merge pull request #3 from kaduartur/fix/spinner-windows
[FIX] print messages
2 parents 3786991 + d403a51 commit 85139d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/spinner/spinner.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func StartNew(title string) *Spinner {
5959
func (s *Spinner) Start() *Spinner {
6060
goos := runtime.GOOS
6161
if goos == "windows" { // Show title without animation on Windows
62-
fmt.Print(s.Title)
62+
fmt.Println(s.Title)
6363
return s
6464
}
6565

@@ -98,13 +98,13 @@ func (s *Spinner) Stop() {
9898
// Success gives success feedback for users and stops the spinner execution
9999
func (s *Spinner) Success(msg string) {
100100
s.Stop()
101-
fmt.Printf("\r%s\n", msg)
101+
fmt.Println(msg)
102102
}
103103

104104
// Error gives error feedback for users and stops the spinner execution
105105
func (s *Spinner) Error(err error) {
106106
s.Stop()
107-
fmt.Printf("\r%s\n", err)
107+
fmt.Println(err)
108108
}
109109

110110
// animate runs the template animation

0 commit comments

Comments
 (0)