Refactor: Formalize ports and update related files

This commit is contained in:
Joseph O'Brien
2026-04-15 21:27:25 -04:00
parent ac0672f64f
commit 67f20eef2d
23 changed files with 979 additions and 258 deletions

View File

@@ -157,6 +157,7 @@ pub fn run(opts: BootstrapOptions) -> Result<Report> {
}
Err(e) => {
report.add("link dotfiles", StepStatus::Failed(e.to_string()));
return Ok(report);
}
}
@@ -171,7 +172,13 @@ pub fn run(opts: BootstrapOptions) -> Result<Report> {
(HookPhase::Dot, "dot hooks"),
(HookPhase::Setup, "setup hooks"),
] {
let phase_report = run_phase(&cfg.hooks, &phase, &runner);
let phase_report = match run_phase(&cfg.hooks, &phase, &runner) {
Ok(report) => report,
Err(e) => {
report.add(label, StepStatus::Failed(e.to_string()));
return Ok(report);
}
};
let failed = phase_report
.steps
.iter()
@@ -183,6 +190,9 @@ pub fn run(opts: BootstrapOptions) -> Result<Report> {
StepStatus::Ok
};
report.add(label, summary);
if failed > 0 {
return Ok(report);
}
}
Ok(report)