Support colored printf (with non-colored output when not on terminal) in Progress.

This commit is contained in:
Andrey Smirnov
2014-02-25 13:17:23 +04:00
parent 98bd76f350
commit 00a9e25706
2 changed files with 32 additions and 0 deletions
+2
View File
@@ -56,6 +56,8 @@ type Progress interface {
AddBar(count int)
// Printf does printf but in safe manner: not overwriting progress bar
Printf(msg string, a ...interface{})
// ColoredPrintf does printf in colored way + newline
ColoredPrintf(msg string, a ...interface{})
}
// Downloader is parallel HTTP fetcher