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