github.com/joey-fossa/fossa-cli@v0.7.34-0.20190708193710-569f1e8679f0/cmd/fossa/display/progress.go (about) 1 package display 2 3 import ( 4 "github.com/apex/log" 5 ) 6 7 // InProgress shows a progress spinner with a message. 8 func InProgress(message string) { 9 if useANSI && level > log.DebugLevel { 10 s.Suffix = " " + message 11 s.Restart() 12 } 13 } 14 15 // ClearProgress stops a progress spinner. 16 func ClearProgress() { 17 s.Stop() 18 }