diff options
| author | 2026-02-28 11:04:57 -0500 | |
|---|---|---|
| committer | 2026-02-28 11:04:57 -0500 | |
| commit | 62d5efab20ccbce6d1471cfd6ecbf4a861442b94 (patch) | |
| tree | bc6bec74a052a17baf721848c9581c4168819fd4 | |
| parent | add short hash to list log (diff) | |
actually trigger the post-hooks
| -rw-r--r-- | src/action.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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<String>) -> 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); |
