From 62d5efab20ccbce6d1471cfd6ecbf4a861442b94 Mon Sep 17 00:00:00 2001 From: BanceDev Date: Sat, 28 Feb 2026 11:04:57 -0500 Subject: actually trigger the post-hooks --- src/action.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/action.rs b/src/action.rs index 3041c0b..d3b9b00 100644 --- a/src/action.rs +++ b/src/action.rs @@ -115,6 +115,7 @@ fn add(url: &str) -> Result<(), String> { config::run_config_command(&config_path, &clone_path, ConfigCommand::Build)?; println!("Installing..."); config::run_config_command(&config_path, &clone_path, ConfigCommand::Install)?; + config::run_config_command(&config_path, &clone_path, ConfigCommand::PostInstall)?; } Ok(()) @@ -185,6 +186,7 @@ fn remove(packages: Vec) -> Result<(), String> { if util::yn_prompt("Proceed with removal?") { for (name, path, cfg_path) in package_paths { config::run_config_command(&cfg_path, &path, ConfigCommand::Uninstall)?; + config::run_config_command(&cfg_path, &path, ConfigCommand::PostUninstall)?; fs::remove_dir_all(&path).map_err(|e| format!("failed to remove {}: {}", name, e))?; fs::remove_file(&cfg_path).map_err(|e| format!("failed to remove {}: {}", name, e))?; println!("Removed {}", name); -- cgit v1.2.3-59-g8ed1b