Skip to content

Commit cba70fe

Browse files
authored
test(ci): main print test
1 parent faa0b8b commit cba70fe

File tree

1 file changed

+2
-38
lines changed

1 file changed

+2
-38
lines changed

Sources/ArchiveDetective/main.swift

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,8 @@ import Foundation
22

33
struct ArchiveDetective {
44
static func main() async {
5-
print("✅ Minimal main ran!")
5+
print("🔥 ArchiveDetective is running")
66
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)
448
}
459
}

0 commit comments

Comments
 (0)