@@ -2,44 +2,8 @@ import Foundation
2
2
3
3
struct ArchiveDetective {
4
4
static func main( ) async {
5
- print ( " ✅ Minimal main ran! " )
5
+ print ( " 🔥 ArchiveDetective is running " )
6
6
fflush ( stdout)
7
-
8
- // print("Fetching JSON from source..."); fflush(stdout)
9
-
10
- // let jsonData: [String: Any]
11
- // do {
12
- // jsonData = try await JSONFetcher.fetch()
13
- // } catch {
14
- // print("Failed to fetch JSON: \(error)"); fflush(stdout)
15
- // return
16
- // }
17
-
18
- // print("Extracting GitHub repository links..."); fflush(stdout)
19
- // let repoLinks = RepoExtractor.extract(from: jsonData)
20
- // print("\(repoLinks.count) repositories to check."); fflush(stdout)
21
-
22
- // var results: [Models.RepoStatus] = []
23
- // for (i, url) in repoLinks.enumerated() {
24
- // print("Checking [\(i + 1)/\(repoLinks.count)]: \(url)"); fflush(stdout)
25
- // let status = await RepoStatusChecker.checkStatus(for: url)
26
- // results.append(status)
27
- // try? await Task.sleep(nanoseconds: 50_000_000) // 50ms delay
28
- // }
29
-
30
- // print("Updating README..."); fflush(stdout)
31
- // do {
32
- // try ReadmeUpdater.update(with: results)
33
- // } catch {
34
- // print("Failed to update README: \(error)"); fflush(stdout)
35
- // }
36
-
37
- // print("\n Summary:"); fflush(stdout)
38
- // let archived = results.filter { $0.status == "Archived" }.count
39
- // let notFound = results.filter { $0.status == "Not Found" }.count
40
- // let forbidden = results.filter { $0.status?.contains("Forbidden") == true }.count
41
- // print(" Archived: \(archived)"); fflush(stdout)
42
- // print(" Not Found: \(notFound)"); fflush(stdout)
43
- // print(" Forbidden: \(forbidden)"); fflush(stdout)
7
+ exit ( 0 )
44
8
}
45
9
}
0 commit comments