pub mod git_heat;
pub mod query;
pub mod symbols;
use std::path::Path;
use anyhow::Result;
use uuid::Uuid;
pub fn scan_all(repo_root: &Path, repo_name: &str) -> Result<ScanResult> {
let symbol_snapshot = Uuid::new_v4();
let git_snapshot = Uuid::new_v4();
let now = chrono::Utc::now();
let symbols = symbols::scan_repo(repo_root, repo_name, symbol_snapshot, now)?;
let git = git_heat::scan_repo(repo_root, repo_name, git_snapshot, now)?;
Ok(ScanResult { symbols, git })
}
#[derive(Debug)]
pub struct ScanResult {
pub symbols: symbols::SymbolScan,
pub git: git_heat::GitHeatScan,
}