Skip to content

Commit 1b5478f

Browse files
committed
checkpoint: pre-yolo 2026-05-13T00:46:50
1 parent b715aa1 commit 1b5478f

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

go/cmd/extcheck/main.go

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package main
2+
3+
import (
4+
"fmt"
5+
"os"
6+
7+
"github.com/randomcodespace/codeiq/go/internal/analyzer"
8+
)
9+
10+
func main() {
11+
if len(os.Args) < 2 {
12+
fmt.Println("usage: extcheck <path>")
13+
return
14+
}
15+
d := analyzer.NewFileDiscovery()
16+
files, err := d.Discover(os.Args[1])
17+
if err != nil {
18+
fmt.Println("err:", err)
19+
return
20+
}
21+
fmt.Printf("discovered %d files\n", len(files))
22+
counts := map[string]int{}
23+
for _, f := range files {
24+
counts[f.Language.String()]++
25+
}
26+
for k, v := range counts {
27+
fmt.Printf(" %-15s %d\n", k, v)
28+
}
29+
}

0 commit comments

Comments
 (0)