We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b715aa1 commit 1b5478fCopy full SHA for 1b5478f
1 file changed
go/cmd/extcheck/main.go
@@ -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
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