mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-14 09:57:16 +00:00
Support colored printf (with non-colored output when not on terminal) in Progress.
This commit is contained in:
1 parent
98bd76f350
commit
00a9e25706
2 files changed
+32
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user