docs: update HANDOFF.md — age-native redesign progress (tasks 1–7 complete)
This commit is contained in:
@@ -77,10 +77,12 @@ impl Config {
|
||||
if !config_path.exists() {
|
||||
return Ok(Config::default());
|
||||
}
|
||||
let content = std::fs::read_to_string(&config_path)
|
||||
.map_err(|e| NotfilesError::Config(format!("reading {}: {e}", config_path.display())))?;
|
||||
let config: Config = toml::from_str(&content)
|
||||
.map_err(|e| NotfilesError::Config(format!("parsing {}: {e}", config_path.display())))?;
|
||||
let content = std::fs::read_to_string(&config_path).map_err(|e| {
|
||||
NotfilesError::Config(format!("reading {}: {e}", config_path.display()))
|
||||
})?;
|
||||
let config: Config = toml::from_str(&content).map_err(|e| {
|
||||
NotfilesError::Config(format!("parsing {}: {e}", config_path.display()))
|
||||
})?;
|
||||
Ok(config)
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,10 @@ pub struct Report {
|
||||
|
||||
impl Report {
|
||||
pub fn add(&mut self, name: impl Into<String>, status: StepStatus) {
|
||||
self.steps.push(Step { name: name.into(), status });
|
||||
self.steps.push(Step {
|
||||
name: name.into(),
|
||||
status,
|
||||
});
|
||||
}
|
||||
|
||||
pub fn print(&self) {
|
||||
@@ -67,7 +70,9 @@ impl Report {
|
||||
}
|
||||
|
||||
pub fn has_failures(&self) -> bool {
|
||||
self.steps.iter().any(|s| matches!(s.status, StepStatus::Failed(_)))
|
||||
self.steps
|
||||
.iter()
|
||||
.any(|s| matches!(s.status, StepStatus::Failed(_)))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user