summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/main.go b/main.go
index e1a9c82..a81339a 100644
--- a/main.go
+++ b/main.go
@@ -3,13 +3,12 @@ package main
import (
"flag"
"fmt"
+ "github.com/briandowns/spinner"
+ "gopkg.in/cheggaaa/pb.v1"
"net/url"
"os"
"path/filepath"
"time"
-
- "github.com/caarlos0/spin"
- "gopkg.in/cheggaaa/pb.v1"
)
var appVersion = "2.0.0"
@@ -61,8 +60,10 @@ func main() {
os.Exit(1)
}
- spinner := spin.New("%s Press the reset button of your keyboard.")
- spinner.Start()
+ sp := spinner.New(spinner.CharSets[9], 100*time.Millisecond)
+ sp.Suffix = " Press the reset button of your keyboard."
+
+ sp.Start()
spinnerStopped := false
var progress *pb.ProgressBar
@@ -80,7 +81,7 @@ func main() {
time.Sleep(500 * time.Millisecond)
if s.step > 0 {
if spinnerStopped == false {
- spinner.Stop()
+ sp.Stop()
spinnerStopped = true
}
if progressStarted == false {