ai-model-vault 4.6.1

DEPRECATED - renamed to `ironvault`. This crate is no longer maintained; 4.6.1 is identical to 4.6.0 apart from this notice.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! CLI handler for garbage collection (aim gc).

use ai_model_vault::{Result, VaultConfig};

pub fn handle_gc(dry_run: bool, config: VaultConfig) -> Result<()> {
    let report = ai_model_vault::gc::gc(&config.dirs.vault_dir, dry_run)?;

    if dry_run {
        println!("Dry-run — no files removed.");
    }

    println!("Referenced blobs: {}", report.referenced_blobs);
    println!("Orphaned blobs:   {}", report.orphaned_blobs.len());
    println!("Temp files:       {}", report.temp_files.len());
    println!("Reclaimable:      {} bytes", report.reclaimable_bytes);

    Ok(())
}