MCPcopy Create free account
hub / github.com/temporalio/temporal / Main

Function Main

tools/parallelize/parallelize.go:15–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13)
14
15func Main() error {
16 if len(os.Args) < 2 {
17 return errors.New("usage: parallelize <dir> [<dir>...]")
18 }
19
20 var failed bool
21 for _, dir := range os.Args[1:] {
22 if err := processDir(dir); err != nil {
23 fmt.Fprintf(os.Stderr, "error processing %s: %v\n", dir, err)
24 failed = true
25 }
26 }
27 if failed {
28 return errors.New("some files failed to process")
29 }
30 return nil
31}
32
33func processDir(dir string) error {
34 return filepath.WalkDir(dir, func(path string, d os.DirEntry, err error) error {

Callers 1

mainFunction · 0.92

Calls 2

processDirFunction · 0.85
NewMethod · 0.65

Tested by

no test coverage detected