Resolve deps before compiling

This commit is contained in:
Ettore Di Giacinto
2019-11-12 08:48:07 +01:00
parent e0aa92efa4
commit 4c1c7451e7
4 changed files with 12 additions and 3 deletions

View File

@@ -32,6 +32,9 @@ func Spinner(i int) {
func SpinnerText(suffix, prefix string) {
m.Lock()
defer m.Unlock()
if s == nil {
s = spinner.New(spinner.CharSets[22], 100*time.Millisecond) // Build our new spinner
}
s.Suffix = Bold(Magenta(suffix)).BgBlack().String()
s.Prefix = Bold(Cyan(prefix)).String()
}