From f3bfd8c1144d0a9b89913c3defecb053496e39cc Mon Sep 17 00:00:00 2001 From: quirinecker Date: Mon, 10 Nov 2025 14:23:15 +0100 Subject: [PATCH] filtering out paths before building process --- src/app/commands/executions/build_execution.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/app/commands/executions/build_execution.rs b/src/app/commands/executions/build_execution.rs index 8107ea8..441920e 100644 --- a/src/app/commands/executions/build_execution.rs +++ b/src/app/commands/executions/build_execution.rs @@ -73,14 +73,19 @@ impl BuildExecution { return Err(result.unwrap_err()) }; + let paths = paths.into_iter() + .filter(|path| offline_reveal || !path.starts_with("./docs/slides/revealjs")) + .collect::>(); + + self.goal = paths.len(); + for (index, in_path) in paths.iter().enumerate() { self.progress = index + 1; - self.goal = paths.len(); let result = docki_build(&in_path, offline_reveal); match result { DockiBuildResult::Err(err) => { - self.display_building_status("Error", in_path, ""); + self.display_building_status("Error", &in_path, ""); println!("{}", err) }, DockiBuildResult::Copy(out_path) => self.display_building_status("Copy", &in_path, &out_path),