added ANSI values to progressbar
This commit is contained in:
parent
029058f49c
commit
264cff93a2
2
main.go
2
main.go
@ -59,6 +59,7 @@ func main() {
|
||||
checkBar := progressbar.NewOptions(len(upcs),
|
||||
progressbar.OptionEnableColorCodes(true),
|
||||
progressbar.OptionSetDescription("[cyan][1/2][reset] Calculating Check Digits..."),
|
||||
progressbar.OptionUseANSICodes(true),
|
||||
progressbar.OptionSetTheme(progressbar.Theme{
|
||||
Saucer: "[green]=[reset]",
|
||||
SaucerHead: "[green]>[reset]",
|
||||
@ -145,6 +146,7 @@ func main() {
|
||||
answerBar := progressbar.NewOptions(len(gtins),
|
||||
progressbar.OptionEnableColorCodes(true),
|
||||
progressbar.OptionSetDescription("[cyan][2/2][reset] Writing answers into file..."),
|
||||
progressbar.OptionUseANSICodes(true),
|
||||
progressbar.OptionClearOnFinish(),
|
||||
progressbar.OptionSetTheme(progressbar.Theme{
|
||||
Saucer: "[green]=[reset]",
|
||||
|
Loading…
Reference in New Issue
Block a user