now it gets gross ew

master
Bel LaPointe 2024-06-14 09:26:26 -06:00
parent 41cab74028
commit b949502869
1 changed files with 8 additions and 0 deletions

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");
}
@ -110,6 +114,10 @@ impl DB {
result
}
pub fn edit(&self) -> Result<(), String> {
Err("not impl".to_string())
}
pub fn save(&self, dry_run: bool) -> Result<(), String> {
for i in &self.0 {
i.save(dry_run)?;