add BuildPlan::make_mdbook()

This commit is contained in:
Sebastian Kuzminsky 2025-03-16 22:19:03 -06:00
parent 233abbe4ff
commit a401faf786
3 changed files with 253 additions and 5 deletions

View file

@ -102,7 +102,7 @@ impl Repos {
}
pub fn compile<'a>(&'a self, target: &'a str) -> Result<BuildPlan<'a>, RecipeCompileError> {
let mut build_plan = BuildPlan::new(self);
let mut build_plan = BuildPlan::new(target, self);
let recipe = self.get_recipe(target)?;
let puml_filename = format!("{target}.puml");
let mut puml_file = std::fs::File::create(&puml_filename)?;