papa 2.3.0-alpha

A cli mod manager for the Northstar launcher
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::core::{utils, Ctx};
use anyhow::Result;

pub fn clear(ctx: &Ctx, full: bool) -> Result<()> {
    if full {
        println!("Clearing cache files...");
    } else {
        println!("Clearing cached packages...");
    }
    utils::clear_cache(ctx.dirs.cache_dir(), full)?;
    println!("Done!");

    Ok(())
}