makeclean 1.3.0

Clean up projects you're no longer working on.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use tracing::trace;

use super::Project;

impl Project {
    /// Invokes `clean` on each of the build tools used in this project.
    pub fn clean(&mut self, dry_run: bool) -> anyhow::Result<()> {
        trace!(?self.path, "cleaning project");
        assert!(!self.build_tools.is_empty());
        for build_tool in self.build_tools.iter_mut() {
            build_tool.clean_project(dry_run)?;
        }
        Ok(())
    }
}