From de9c68b085034c897f26ce22fa05bd2601e79373 Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Wed, 25 Dec 2024 15:17:12 +0000 Subject: Version 0.2.0 --- src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 08a4f51..7ad6d79 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,6 +12,7 @@ use util::*; fn main() { let args = cli::Args::parse(); let install_profile = &args.file; + let dry_run = &args.dry_run; let loaded_config: Config = Config::from_file(install_profile).unwrap_or_else(|err| { eprintln!("Cannot load '{install_profile}': {}", err.to_string()); @@ -26,6 +27,11 @@ fn main() { println!("{} {}", count.bold(), name.bold()); for step in stage.steps.as_ref().unwrap() { + if *dry_run { + println!("{}", fmt_step(step, &Ok(false))); + continue; + } + let step_result = install::run_step(&step, &stage.base_path); println!("{}", fmt_step(step, &step_result)); -- cgit v1.2.3-70-g09d2