hooks : on_install/on_start/on_stop/on_update globaux (settings.hooks) et par projet (issue #34) - echec non bloquant, dry-run respecte, ordre global puis projet

This commit is contained in:
2026-08-17 08:55:35 -04:00
parent 30cc49de3c
commit 18784ba9f7
6 changed files with 144 additions and 0 deletions
+5
View File
@@ -102,6 +102,11 @@ fn update_one(app: &App, runner: &dyn Runner, name: &str) -> Result<i32> {
.with_agent(agent.name.clone())
.with_args(vec![format!("method={}", method.kind)]),
);
crate::hooks::run_hooks(
app,
"on_update",
&std::env::current_dir().unwrap_or_default(),
);
app.log.success(&format!(
"updated {} to v{version}",
agent.title()