Skip to content

Commit 0940fc6

Browse files
committed
disable spinner on windows system
1 parent bd31641 commit 0940fc6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/query.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"net/http"
88
"os"
99
"os/signal"
10+
"runtime"
1011
"strings"
1112
"time"
1213

@@ -64,6 +65,12 @@ func (this QueryParam) DoQuery() {
6465

6566
//Init spinner
6667
var s *spinner.Spinner
68+
69+
// disable the spinner on windows system
70+
if runtime.GOOS == "windows" {
71+
this.IsQuiet = true
72+
}
73+
6774
if !this.IsQuiet {
6875
s = spinner.New(spinner.CharSets[35], 100*time.Millisecond)
6976
s.Prefix = "Querying... "

0 commit comments

Comments
 (0)