Improved MAL parse

This commit is contained in:
Eduard Urbach 2018-11-13 19:04:31 +09:00
parent 57e6e83ecd
commit 1f031105cb

View File

@ -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)
}