Skip to content

Commit

Permalink
Add newlines to spinner msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
cyx committed Mar 20, 2021
1 parent 7bf7c0b commit 581b9de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/ansi/spinner.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ func Waiting(fn func() error) error {

func Spinner(text string, fn func() error) error {
initialMsg := text + spinnerTextEllipsis + " "
doneMsg := initialMsg + spinnerTextDone
failMsg := initialMsg + spinnerTextFailed
doneMsg := initialMsg + spinnerTextDone + "\n"
failMsg := initialMsg + spinnerTextFailed + "\n"

return loading(initialMsg, doneMsg, failMsg, fn)
}
Expand Down

0 comments on commit 581b9de

Please sign in to comment.