now it gets gross ew

This commit is contained in:
Bel LaPointe
2024-06-14 09:26:26 -06:00
parent 41cab74028
commit b949502869

View File

@@ -24,6 +24,10 @@ fn main() {
_ => {}, _ => {},
}; };
if flags.edit {
db.edit().expect("failed to edit");
}
db.save(flags.dry_run).expect("failed to save"); db.save(flags.dry_run).expect("failed to save");
} }
@@ -110,6 +114,10 @@ impl DB {
result result
} }
pub fn edit(&self) -> Result<(), String> {
Err("not impl".to_string())
}
pub fn save(&self, dry_run: bool) -> Result<(), String> { pub fn save(&self, dry_run: bool) -> Result<(), String> {
for i in &self.0 { for i in &self.0 {
i.save(dry_run)?; i.save(dry_run)?;