diff --git a/jobs/mal-parse/mal-parse.go b/jobs/mal-parse/mal-parse.go index 094a052e..05a813b4 100644 --- a/jobs/mal-parse/mal-parse.go +++ b/jobs/mal-parse/mal-parse.go @@ -1,6 +1,7 @@ package main import ( + "fmt" "os" "path" "path/filepath" @@ -49,6 +50,7 @@ func readFiles(root string, onFile func(string) error) { } count++ + fmt.Printf("\r\033[2K[%d] %s ", count, name) err = onFile(name) if err != nil { @@ -59,5 +61,8 @@ func readFiles(root string, onFile func(string) error) { return nil }) + // Erase line + print("\r\033[2K") + color.Cyan("%d files found", count) }