zoi/cmd/
clean.rs

1use crate::pkg;
2use anyhow::Result;
3use colored::*;
4
5pub fn run() -> Result<()> {
6    println!("{}", "--- Cleaning Cache ---".yellow().bold());
7    pkg::cache::clear()?;
8    pkg::cache::clear_archives()?;
9    println!("{}", "Cache cleaned successfully.".green());
10    Ok(())
11}