MCPcopy Create free account
hub / github.com/ddd/gpb / finish

Method finish

src/workers/progress.rs:74–89  ·  view source on GitHub ↗
(&self, hits: u64, latest_hit: Option<&str>)

Source from the content-addressed store, hash-verified

72 }
73
74 pub fn finish(&self, hits: u64, latest_hit: Option<&str>) {
75 self.total_pb.finish_with_message("✅ Processing completed!");
76 self.stats_pb.finish_with_message("✅ Finished!");
77
78 if hits > 1 {
79 self.hits_pb.finish_with_message(format!("🎉 Found {} phone numbers! Check output.txt", hits));
80 } else if hits == 1 {
81 if let Some(hit) = latest_hit {
82 self.hits_pb.finish_with_message(format!("🎉 Found 1 phone number! {}", hit));
83 } else {
84 self.hits_pb.finish_with_message("🎉 Found 1 phone number! Check output.txt");
85 }
86 } else {
87 self.hits_pb.finish_with_message("😢 No valid phone numbers found");
88 }
89 }
90
91 // New methods for CSV processing mode
92

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected