Merge pull request #104 from harshavardhana/pr_out_add_wget_style_format_and_also_use_set_current_position_instead_of_add_

This commit is contained in:
Harshavardhana
2015-03-10 21:59:07 -07:00
+3 -1
View File
@@ -40,6 +40,8 @@ func startBar(size int64) *pb.ProgressBar {
// Colorize
infoCallback(s)
}
// Feels like wget
bar.Format("[=> ]")
return bar
}
@@ -144,7 +146,7 @@ func doFsCopy(c *cli.Context) {
if err != nil {
fatal(err.Error())
}
bar.Add(int(downloadedSize))
bar.Set(int(downloadedSize))
}
// Start the bar now
bar.Start()