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 package main
import ( import (
"fmt"
"os" "os"
"path" "path"
"path/filepath" "path/filepath"
@ -49,6 +50,7 @@ func readFiles(root string, onFile func(string) error) {
} }
count++ count++
fmt.Printf("\r\033[2K[%d] %s ", count, name)
err = onFile(name) err = onFile(name)
if err != nil { if err != nil {
@ -59,5 +61,8 @@ func readFiles(root string, onFile func(string) error) {
return nil return nil
}) })
// Erase line
print("\r\033[2K")
color.Cyan("%d files found", count) color.Cyan("%d files found", count)
} }