Improved MAL parse
This commit is contained in:
parent
57e6e83ecd
commit
1f031105cb
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user