Skip to content

Commit

Permalink
fix: json format and spinner (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfatta authored Jan 26, 2021
1 parent 0443bcc commit d37f7f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/ansi/spinner.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package ansi

import (
"fmt"
"os"
"time"

"github.com/briandowns/spinner"
Expand All @@ -21,7 +22,7 @@ func Spinner(text string, fn func() error) error {
go func() {
defer close(done)

s := spinner.New(spinner.CharSets[11], 100*time.Millisecond)
s := spinner.New(spinner.CharSets[11], 100*time.Millisecond, spinner.WithWriter(os.Stderr))
s.Prefix = text + spinnerTextEllipsis + " "
s.FinalMSG = s.Prefix + spinnerTextDone

Expand Down

0 comments on commit d37f7f8

Please sign in to comment.