Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::path::PathBuf;

use craby_common::utils::fs::clean_binding_headers;
use log::info;

pub struct CleanOptions {
    pub project_root: PathBuf,
}

pub fn r#impl(opts: CleanOptions) -> anyhow::Result<()> {
    info!("🧹 Cleaning up temporary files...");

    clean_binding_headers(&opts.project_root)?;

    info!("Done!");

    Ok(())
}